Basic python -1 (QNA)
Q1: What are tokens in Python? How many types of tokens are allowed in Python? A1: In Python, tokens are the basic components of the source code. They are the smallest unit of code that Python interpreter can understand. Tokens can be classified into the following types: Keywords, Identifiers, Literals, Operators, Punctuators. Q2: How are …