I am having what appears to be indentation issues in the Python Interactive Shell IDLE for Python version 3.3 64 bit on a Windows 7 Professional 64bit computer. This is the idea behind simple conditional flow program I am trying to write:
if spam == 1:
print('Hello')
elif spam == 2:
print('Howdy')
else:
print('Greetings!")
The interactive shell is not letting the "elif" return to the same block (not sure if I am describing that correctly) as the if statement, so it ends up looking like this:
if spam == 1:
print('Hello')
elif spam == 2:
SyntaxError: invalid syntax
if spam == 1:
print('Hello')
elif spam == 2:
SyntaxError: unindent does not match any outer indentation level
>>>
PLEASE HELP.
Recent Files
list. – Terry Jan Reedy Mar 14 '17 at 0:26test.py
which is typically #2 or 3 on my recent files list. – John Coleman Mar 14 '17 at 0:37