What are tokens in Python? How many types of tokens allowed in Python?
Question : What are tokens in Python? How many types of tokens allowed in Python?
Tokens are the smallest unit of the program. There are following tokens in Python:
- Reserved words or Keywords
- Identifiers
- Literals
- Operators
- Punctuators