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
That's because your else part is empty and also not properly indented with the if.
else
if
if 3 > 0: print "voila" else: pass
In python pass is equivalent to {} used in other languages like C.
pass
{}