![](https://secure.gravatar.com/avatar/f71f5b898ff50fe74a20646643b50795.jpg?s=120&d=mm&r=g)
July 14, 2005
4:44 a.m.
I'm new to Python, so just working through the tutorials on python.org The question is, why doesn't this work: In [34]: if x<0: ....: print 'blah' ....: elif x == 0: ------------------------------------------------------------ File "<console>", line 3 elif x == 0: ^ SyntaxError: invalid syntax Surely this is the simplest thing? Does is have a problem with 'elif'? But it's in the tutorial!! Dave
7155
Age (days ago)
7155
Last active (days ago)
0 comments
1 participants
participants (1)
-
Howey, David A