Search⌘ K
AI Features

Keywords

Explore Python's reserved keywords that form the foundation of the language. Understand how Boolean values, loop controls, conditional statements, and function definitions use these keywords to instruct the interpreter.

All programming languages reserve certain words to have a special meaning. These words are called keywords. With keywords, the programmer can issue commands to the compiler or interpreter. They allow you to tell the computer what to do. Without keywords, the computer could not make sense of the seemingly random text in your code file.

Keywords are reserved words. You cannot use them as variable names.

Let’s take an in depth look at the most important keywords. In each row of the following table, you can find the keyword itself, a short description, and an example of its usage.

Boolean keywords

Data values from the data type Boolean.

Keywords: ...