File "demo_indentation_test.py", line 2 print("Five is greater than two!") ^ IndentationError: expected an indented block code example
Example 1: File "demo_indentation_test.py", line 2 print("Five is greater than two!") ^ IndentationError: expected an indented block
f 5 > 2:
print("Five is greater than two!")
ERROR : File "demo_indentation_test.py", line 2
print("Five is greater than two!")
^
IndentationError: expected an indented block
_____________________________________________________________________________
f 5 > 2:
print("Five is greater than two!")
ERROR : No Error !
Example 2: File "demo_indentation_test.py", line 2 print("Five is greater than two!") ^ IndentationError: expected an indented block
f 5 > 2:
print("Five is greater than two!")
ERROR : File "demo_indentation_test.py", line 2
print("Five is greater than two!")
^
IndentationError: expected an indented block
_____________________________________________________________________________
f 5 > 2:
print("Five is greater than two!")
ERROR : No Error !
Example 3: File "demo_indentation_test.py", line 2 print("Five is greater than two!") ^ IndentationError: expected an indented block
f 5 > 2:
print("Five is greater than two!")
ERROR : File "demo_indentation_test.py", line 2
print("Five is greater than two!")
^
IndentationError: expected an indented block
_____________________________________________________________________________
f 5 > 2:
print("Five is greater than two!")
ERROR : No Error !