create boolean

Paul Rubin http
Sat Mar 7 06:49:24 EST 2009


Fencer <no.spam at plz.ok> writes:
> Hi, I need a boolean b to be true if the variable n is not None and
> not an empty list, otherwise b should be false....
> It can be assumed that n is always None or a list that might be empty

b = bool(n)



More information about the Python-list mailing list