Need help with programming.
Matthew Dixon Cowles
matt at mondoinfo.com
Thu Oct 25 03:08:45 CEST 2001
On 24 Oct 2001 23:46:36 GMT, Django <heeroygw at aol.comnojunk> wrote:
>Hello. I've just begun using Python, and am now getting into simple
>commands. Everytime I try to use "else:" I get this message:
>SyntaxError: invalid syntax
It's probably your indentation. The else: needs to be lined up with
>>> if a==4:
... print "four"
... print "not four"
More information about the Python-list