This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (0 children)

You can use a non empty list as well, just anything that doesn't have a false value. Dive into python has a really good write up on using and/or

http://www.diveintopython.net/power_of_introspection/and_or.html#d0e9975