learning to program with Python

Gernot Hillier gernot at hillier.de
Sun Feb 22 15:50:52 CET 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi!

Am Sonntag, 22. Februar 2004 15:36 schrieb Ricardo:
> 		if corPelo != None
[...]
> 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:
>
>   Traceback (  File "<interactive input>", line 5
>      if corPelo != None
>                        ^
> SyntaxError: invalid syntax
>
> I hope someone can help me?
> Thanks in advance anyway.

You miss a colon (":") at the end of the line. It should be "if corPelo != 
None:" as also in the next if-command...

- -- 
Ciao,

Gernot
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)

iD8DBQFAOMHOk997/GGeSeIRAiixAJ4lDz6d3tgy+nRb1sCBFEUWQNGX1ACff8UC
FLhjTJlSxyrbn82vL7zPcHg=
=rV/5
-----END PGP SIGNATURE-----





More information about the Python-list mailing list