Make Money Online KEYWORDS Python Keywords an Introduction

Python Keywords an Introduction

Python Keywords an Introduction post thumbnail image


Python keyword is a special word that forms the vocabulary of the Python language. Keywords are case-sensitive. They cannot be used as identifiers.

In Python, keyword is a reserved word that cannot be used as an identifier. Python identifiers are user-defined names to identify objects, functions, classes, modules, etc. An identifier starts with a letter A to Z or a to z or an underscore (_) followed by zero or more letters, underscores and digits (0 to 9).

What is the use of keywords in Python?
In Python, keywords are reserved words that cannot be used as identifiers.
Keywords are used to define the syntax and structure of the Python language.
They are also used to reserved memory locations for various data types.
Why we need keywords?
We need keywords because they help us to write correct code in fewer lines. The compiler can easily identify errors if we use keywords incorrectly.

Related Post