RC wrote:

> if condition1 && condition2: # and
>         doThis
> elif condition3 || condition4: # or
>         doThat
 
> In most of language have &&, ||
> 
> How do I do in Python?

if condition1 and condition2: # &&
        doThis
elif condition3 or condition4: # ||
        doThat

See the pattern?
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to