Q.

Define Tokens? Explain various types of tokens used in Python.
Define Tokens? Explain various types of tokens used in Python.

Chapter-2 | ਪਾਇਥਨ ਪ੍ਰੋਗਰਾਮਿੰਗ ਸਬੰਧੀ ਮੂਲ ਧਾਰਨਾਵਾਂ | Basic Concepts of Python Programming

Every program is made up of different types of tokens. These tokens are like words and punctuation marks in the English language. They are the smallest individual elements in a program. The tokens used in Python programs are described below:
1) Keywords: These are the Reserve Words.
2) Identifiers: These are the names given to program elements, such as variables, functions etc.
3) Literals: These are the fixed values used in the Source Code.
4) Operators: These tokens are used to perform operations in the expressions.
5) Delimiters: These are special characters that play specific roles (grouping, punctuation, etc.) in Python.


Every program is made up of different types of tokens. These tokens are like words and punctuation marks in the English language. They are the smallest individual elements in a program. The tokens used in Python programs are described below:
1) Keywords: These are the Reserve Words.
2) Identifiers: These are the names given to program elements, such as variables, functions etc.
3) Literals: These are the fixed values used in the Source Code.
4) Operators: These tokens are used to perform operations in the expressions.
5) Delimiters: These are special characters that play specific roles (grouping, punctuation, etc.) in Python.