[Tutor] How to print a variable from an if/else statement
bgailer at gmail.com
Wed Sep 12 18:38:31 CEST 2012
Precision in terminology is good.
Python has /keywords./ /if, //and, //else /are /keywords. /All keywords
are all lower case.
Keywords cannot be overridden by assignment.
/Python has statements/./ /if // is a ///statement./////////So is /def.////
///Some keywords are part of the structure of statements, e.g.
Someof these may also be used in expressions, e.g. 3 if a == 1 else 2.
///In Python 3 /print/ is a /function./
Python has a few /built-in constants, /including /None, True, False.
/These names are Title case, and can be overridden by assignment.
Chapel Hill NC
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Tutor