Indentation
Pilgrim
gwyoder at hotmail.com
Tue Jun 19 06:31:12 EDT 2001
More information about the Python-list mailing list
Tue Jun 19 06:31:12 EDT 2001
- Previous message (by thread): Indentation
- Next message (by thread): Indentation
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message (by thread): Indentation
- Next message (by thread): Indentation
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list