When I hit enter after typing else:
to move to the next line, it gives error indentation, no matter how I align it, i tried 4 spaces, everything still not working. I made sure that else
is aligned perfectly with if
as in the book, but still error.
Can someone please explain to me how indentation works? I'm using Python 2.7
Code:
if x%2 == 0:
print "Even"
else:
print "Odd"
print "done with conditional"