Monday, March 21, 2016

2 vs. True

>>> 2 == True
False
>>> bool(2)
True


Things like this make Python an interesting language.

No comments: