> What values represent true in Python?

True

Its a built-in boolean type value.

But empty strings, lists, tuples etc are considered False
Similarly zero and None are considered False

The library reference has a full list somewhere, but it's pretty 
much what intuition would tell you. "Empty" things are false 
anything else is true.

Alan G.
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to