[Tutor] How to print a variable from an if/else statement
bob gailer
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.
if...else, for..in.
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.
--
Bob Gailer
919-636-4239
Chapel Hill NC
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20120912/99d407df/attachment.html>
More information about the Tutor
mailing list