About Lesson
A token is a small individual unit in a Python program.
- Keywords:
Python has a total of 31 reserved keywords. Ex: in, for, if, and, finally, not, etc. - Identifiers:
An 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