Embarrasing questio

Tim Rowe digitig at gmail.com
Thu Feb 12 11:28:35 EST 2009


2009/2/12 km <srikrishnamohan at gmail.com>:
> Hi,
>
> you could do it this way also :
>
> if i in [3,5]:
>     do something...

True, you could do it, but it would be wrong. The original is true for
i = 6, 9, 10, 12 and so on, but yours doesn't seem to be...

-- 
Tim Rowe



More information about the Python-list mailing list