Truthiness

Simon Kennedy sffjunkie at gmail.com
Thu Oct 23 10:30:07 EDT 2014


Just out of academic interest, is there somewhere in the Python docs where the following is explained?

>>> 3 == True
False
>>> if 3:
	print("It's Twue")
	
It's Twue

i.e. in the if statement 3 is True but not in the first



More information about the Python-list mailing list