Everything was working fine in this program I've been writing, and then out of nowhere I started getting all sorts of weird errors. For example:
print Bounds[atomCounter][i][2]
elif Bounds[atomCounter][i][2] == 'S':
Gives the error:
elif Bounds[atomCounter][i][2] == 'S':
^
SyntaxError: invalid syntax
It didn't give this error like ten minutes ago, and it doesn't unless the print statement is there. If the print statement isn't there, I get an index out of bounds error - but that shouldn't but the case, because the print statement works (just causes an error in the code after it)... anybody know what's wrong?
elifyou have to have anifand it needs to be indented, which yourprintdoes not appear to be. It'd be more helpful if you posted the wholeif/elifblock.from __future__ import print_functionat the top of the file.