Truth and flow control in Python: Difference between revisions

wikademia>Wikademia
No edit summary
 
(One intermediate revision by the same user not shown)
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.