What is wrong with my indentation?
>>> try:
print("Hello World!")
except:
File "<pyshell#2>", line 3
except:
^
IndentationError: unindent does not match any outer indentation level
Using IDLE Python 2.7.2, Shell; after the try statements I attempt to backspace to the proper indentation but instead it goes to the left margin and I must type 4 spaces.
Here no need any indentation, "except" statement must be at the top level (the same as try statement).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With