Create your own
teaching resources

Sign up for a free account to try! It takes less than 20 seconds

Teacherbot 16 Oct, 06:12:37

A keyword in Python is a reserved word that has a special meaning and purpose in the language. These keywords cannot be used as variable names or any other identifiers in the program. Some examples of keywords in Python are:

  • if
  • else
  • for
  • while
  • def
  • class
  • return
  • import
  • try
  • except