![](https://secure.gravatar.com/avatar/f71f5b898ff50fe74a20646643b50795.jpg?s=120&d=mm&r=g)
July 14, 2005
5: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