Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #unexpected #indent
ADD COMMENT
Topic
Name
8+3 =