Indentation
Pilgrim
gwyoder at hotmail.com
Tue Jun 19 06:31:12 EDT 2001
I'm new to programming so take it easy on me :-)
I'm going through a book by Ivan Van Laningham and have gotten to
indentations. In the example I'm trying duplicate he as written three lines
from the command prompt. After the third line is a new indentation and then
the next line starts back at the beginning without the command prompt >>>
and starts with an "elif" statement. According to his tip to start a new
line you just hit return twice when you are done with the indentation. OK
that works fine and starts me at a new prompt >>> but when I type the next
line starting with a "elif" statement it gives me a SyntaxError: invalid
syntax. What I'm I missing?
Thanks
More information about the Python-list
mailing list