[Tutor] How to print a variable from an if/else statement

Joel Goldstick joel.goldstick at gmail.com
Wed Sep 12 20:10:25 CEST 2012


On Wed, Sep 12, 2012 at 12:38 PM, bob gailer <bgailer at gmail.com> wrote:
> 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
>
thanks for clarifying.


-- 
Joel Goldstick


More information about the Tutor mailing list