What are tokens in Python? How many types of tokens are allowed in Python? Exemplify your answer.

smallest unit of a python program is called token. python has following tokens-
(1) Keywords
(2) Identifier
(3) Literals
(4) Operators
(5) Punctuators

error: Content is protected !!