Python Tokens

A token is the small individual unit in a Python program.
- Keywords:
Python has total 31 reserved keywords. Ex: in, for, if, and, finally, not, etc. - Identifiers:
A identifier in Python is used to identify a variable, function, class, module, or other objects. For example: MyClass, myClass, myclass, etc. - Literals:
Literals in Python can be determined as numbers, text, or other data that represent values to be stored in variables. Ex: age = 22, escape sequence, etc. - Operators:
It can be defined as symbols that are used to perform operations on operands. Ex: arithmetic operators [+, -, *, /, %], etc. - Punctuators:
Used to implement the grammatical and structure of a Syntax. Ex: &=, >>=, <<=, etc.