• Register
0 votes
146 views

Problem:

The Python language is not sensitive to block structuring of code.

5 3 2
5,650 points

1 Answer

0 votes

Solution:

True

Explanation:

The Python language is not sensitive to block structuring of code. The if statement causes one or more statements to execute only when a Boolean expression is true. Python allows you to compare strings, but it is not case sensitive. ... The not operator is a unary operator which must be used in a compound expression.

 

Another Explanation:

In computer programming, a block or code block is a lexical structure of source code that is grouped together. ... A programming language that permits the creation of blocks, including blocks nested within other blocks, is called a block-structured programming language. The Python language is not sensitive to block structuring of code. The if statement causes one or more statements to execute only when a Boolean expression is true. A code block is a piece of Python program text that can be executed as a unit, such as a module, a class definition or a function body. 

5 3 1
10,860 points

Related questions

0 votes
1 answer 48 views
48 views
I am new to python programming. I was trying to compare two strings, I wrote a code to compare: YourStr = "one" MyStr = "one" if YourStr = MyStr print("Two strings are same") else print("Two strings are not same") But it gives an error: File "main.py", line 4 if YourStr = MyStr ^ SyntaxError: invalid syntax Whats wrong in my code and how can I compare two string but it is not case sensitive?
asked Mar 16 LizzyM 6.1k points
0 votes
1 answer 172 views
172 views
Problem : I am facing a lot of errors with the below message : “DatabaseError: current transaction is aborted, commands ignored until end of transaction block” Whenever I tried to change from the python-psycopg to the python-psycopg2 as my Django project's database engine. My code remains the same, just unable to know where those errors are coming from ?
asked Jan 4 alecxe 7.5k points
0 votes
1 answer 78 views
78 views
Problem : I am having hell lot of troubles because of below error message internalerror: current transaction is aborted, commands ignored until end of transaction block
asked Nov 14, 2019 peterlaw 6.9k points
0 votes
2 answers 33 views
33 views
How do I get a size of a pictures sides with PIL or any other Python library?
asked Oct 26 psandprop 2.4k points
0 votes
1 answer 110 views
110 views
Problem : Facing following issue related to list in Python given that a refers to a list, write the necessary code to reverse the elements of the list.
asked Nov 16, 2019 peterlaw 6.9k points