M
madzientist
hi,
two quick questions:
a) i am using SPE (latest version) and for some reason, when i type,
say
if 1==2:
print "not equal"
else:
print "equal"
the else is at the same indentation level as the preceding print
statement, and i get a syntax error
why doesn't spe automatically put the else at the level of the if
statement ? what am i dong wrong ? once i manually change the
indentation, the code snippet runs perfectly.
b) if this is not the group for such elementary questions, please do
let me know.
thanks !!!!
suresh
two quick questions:
a) i am using SPE (latest version) and for some reason, when i type,
say
if 1==2:
print "not equal"
else:
print "equal"
the else is at the same indentation level as the preceding print
statement, and i get a syntax error
why doesn't spe automatically put the else at the level of the if
statement ? what am i dong wrong ? once i manually change the
indentation, the code snippet runs perfectly.
b) if this is not the group for such elementary questions, please do
let me know.
thanks !!!!
suresh