python tutorial horizontal image

Python Keywords & Identifiers

Hello friends, in this tutorial we will learn about the python keywords & identifiers.

Python Keywords

Python keywords are some reserved words stored in Python library. Since these words are reserved in the Python library, that is why these words are also called as reserved words. Python keywords cannot be used as the name of a variable, constant or any other identifier. All Python keywords are written in lowercase letters, below you will find a list of python keywords.

andassertbreak
classcontinuedef
delelifelse
exceptexecfinally
forfromglobal
ifimportin
islambdanot
orpassprint
raisereturntry
whilewithyield

Python Identifiers

Python identifiers are the names given of variables, classes, functions, or any other object(s) defined by user. An identifier begin with English alphabets A to Z both in in uppercase (A to Z) and small case (a to z) or underscore symbol (_) followed by zero or more letters, underscore symbol (_) and digits (0 to 9).

Python is a case sensitive programming language, which means eTutororg and etutororg are two different identifiers in Python programming language. In Python programming the punctuation characters like @, %, and $ are not allowed within the identifiers. Below you will find a set of rules/conventions to define an identifier in Python programming language.

  • Class names must start with an uppercase letter, while the other identifier’s names can start with the lowercase letters.
  • If the name of an identifier starts with a single leading underscore, then it means the identifier is private.
  • If the name of an identifier starts with a double leading underscores, then it means the identifier is strongly private.
  • If the name of an identifier ends with a double trailing underscores, then it means the identifier is the language defined special name.

Audience

This Python tutorial is designed to help the beginners as well as the professional developers. For better understanding the language of the tutorial is kept simple and easy to understand.

Prerequisites

This tutorial demands to have the basic knowledge of the programming languages such as c or c++ for the better understanding of the Python programming. The other basic requirement to learn Python through this tutorial is the basic knowledge of computer and information technology so you can easily acquire a better understanding Python programming.

Community Helping

In case you find any kind of error like typing error, spelling mistakes, incorrect grammar, incorrect information or any other mistakes. Please feel free to write to us at: akyadav@etutororg.com.