Question #79149

In Python, indentation is used to indicate the extent of a block of code. What is the output of the following Python?
first = 3
second = 5
if first < second:
print ( “but this time” )
print ( “first is bigger” )
1

Expert's answer

2018-07-19T07:01:19-0400

Question #79149

In Python, indentation is used to indicate the extent of a block of code. What is the output of the following Python?


first = 3
second = 5
if first < second:
    print ("but this time")
    print ("first is bigger")


Answer:

The output will be an error as follow:

IndentationError: expected an indented block

There should be an indented line after if statement.

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!
LATEST TUTORIALS
APPROVED BY CLIENTS