learning to program with Python

Jonas Galvez jonas at jonasgalvez.com
Sun Feb 22 09:32:59 EST 2004


> [Ricardo]
> the book says that it should be done like this, but when i finnish
> the  5th line(if corPelo != None) and press ENTER, it gives me the
> error:

The syntax for a if block is the following:

    if expression:
        statements

Notice the colon after the expression.


Jonas







More information about the Python-list mailing list