0% found this document useful (0 votes)
19 views

Python 1

Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
19 views

Python 1

Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

Python Keywords and Identifiers

In this tutorial, you will learn about keywords (reserved words in Python) and
identifiers (names given to variables, functions, etc.).

Python Keywords
Keywords are the reserved words in Python.

We cannot use a keyword as a variable name, function name or any other identifier.
They are used to define the syntax and structure of the Python language.

In Python, keywords are case sensitive.

There are 33 keywords in Python 3.7. This number can vary slightly over the course
of time.

All the keywords except True, False and None are in lowercase and they must be
written as they are.
The list of all the keywords is given below.

Things to Remember
Python is a case-sensitive language. This means, Variable and variable are not the
same.

Always give the identifiers a name that makes sense. While c = 10 is a valid name,
writing count = 10 would make more sense, and it would be easier to figure out what
it represents when you look at your code after a long gap.

Multiple words can be separated using an underscore, like this_is_a_long_variable

You might also like