Sunday, February 28, 2010
Boolean Operators
Much like the discovery in my post about multiple condition if statements, and their capitalization strictness, I stumbled upon another capitalization difference between PHP and Python. In PHP, you are able to type true however you like (true, TRUE, True, etc). In Python, however, you must use True and False. This may be helpful later on after you spend 10 minutes trying to figure out why "true" is not defined. Enjoy!
Subscribe to:
Post Comments (Atom)

Haha, that just happened to me yesterday.
ReplyDeleteStill working with django?
ReplyDelete