Answers for "IndentationError: expected an indented block"

5

expected an indented block

You didnt add the spaces at the start of your if/while/for statement
Posted by: Guest on May-05-2021
1

IndentationError: unexpected indent

# Python uses spacing at the start of the line to determine when code blocks start and end. 
# Errors you can get are:

def a():
...print "foo"
...     print "bar"
IndentationError: unexpected indent

>>>   print "hello"
IndentationError: unexpected indent
Posted by: Guest on January-17-2021
6

IndentationError: expected an indented block

wrong Tab
Posted by: Guest on February-16-2021

Code answers related to "IndentationError: expected an indented block"

Browse Popular Code Answers by Language