Py3K idea: why not drop the colon?

Bjoern Schliessmann usenet-mail-0306.20.chr0n0ss at spamgourmet.com
Fri Nov 10 16:22:53 EST 2006


Fredrik Lundh wrote:

>  >>> color = "blue"
>  >>> if color == "red" or "green" or "yellow":
> ...     print color, "is red or green or yellow"
> ...
> blue is red or green or yellow

Whoops. Okay.

Regards,


Björn

-- 
BOFH excuse #303:

fractal radiation jamming the backbone




More information about the Python-list mailing list