1 réponse
- Le plus récent
- Le plus de votes
- La plupart des commentaires
1
Hi Mayank,
Python uses spacing at the start of the line to determine when code blocks start and end. Errors you can get are:
Unexpected indent. This line of code has more spaces at the start than the one before, but the one before is not the start of a subblock (e.g., the if, while, and for statements). All lines of code in a block must start with exactly the same string of whitespace. For instance:
def a():
... print "foo"
... print "bar"
IndentationError: unexpected indent
It looks like the code on line 80 has an unexpected indent compared to the line(s) above it. I suggest that you review the indentation of the lines above it. Alternatively, you can share a screenshot with more context.
Thanks, Ben
Contenus pertinents
- demandé il y a 6 mois
- demandé il y a 2 mois
- demandé il y a un an
- AWS OFFICIELA mis à jour il y a 5 ans
- AWS OFFICIELA mis à jour il y a un an
Thanks a lot Ben