Next / Previous / Contents / TCC Help System / NM Tech homepage

5. Names and keywords

Python names (also called identifiers) can be any length and follow these rules:

Examples: coconuts, sirRobin, blanche_hickey_869, __secretWord.

Case is significant in Python. The name “Robin” is not the same name as “robin”.

The names below are keywords, also known as reserved words. They have special meaning in Python and cannot be used as names or identifiers.

and       def       finally   in       print    yield
as        del       for       is       raise 
assert    elif      from      lambda   return
break     else      global    not      try   
class     except    if        or       with
continue  exec      import    pass     while