Truth and flow control in Python: Difference between revisions

wikademia>Wikademia
m 14 revisions
wikademia>Wikademia
No edit summary
 
Line 1: Line 1:
{{ntnes}}
==Boolean Expressions==
==Boolean Expressions==
Python has a Boolean type. The two values for this type are True and False. Note the capitalization: the first letter must be capitalized. Most text editors, including IDLE, will highlight True and False when properly capitalized.  
Python has a Boolean type. The two values for this type are True and False. Note the capitalization: the first letter must be capitalized. Most text editors, including IDLE, will highlight True and False when properly capitalized.