Uncategorized

Reserved Words In Python

You can’t use the following as variable names or identifiers in Python:

  • False
  • None
  • True
  • class
  • if
  • def
  • return
  • for
  • from
  • is
  • lambda
  • while
  • finally
  • continue
  • nonlocal
  • and
  • as
  • assert
  • del
  • elif
  • global
  • try
  • import
  • not
  • or
  • pass
  • with
  • yield
  • break
  • except
  • in
  • raise