Random
Source Code

falsy

Falsy is actually an important technical term in computer programming. A falsy value is one that will not cause an conditional block to activate.

#Python code

if {}:

print "This will not get printed, because {} (the empty dictionary) is falsy."

by tigerthink January 20, 2010

7👍 6👎