Can someone explain why I am getting an invalid syntax error from Python\'s interpretor while formulating this simple if...else statement? I don\'t add any tabs myself I sim
The keyword else has to be indented with respect to the if statement respectively
else
if
e.g.
a = 2 if a == 2: print "a=%d", % a else: print "mismatched"