KnowledgeBoat Logo

Computer Science

Assertion (A): Every small unit in a Python programming statement is termed as a token.

Reasoning (R): Tokens are not interpreted but are an integral part while designing the code.

  1. Both A and R are true and R is the correct explanation of A.
  2. Both A and R are true but R is not the correct explanation of A.
  3. A is true but R is false.
  4. A is false but R is true.

Python Data Handling

3 Likes

Answer

A is true but R is false.

Explanation
A token is the smallest element of a Python program that holds meaning for the interpreter. This includes keywords, identifiers, literals, operators, and punctuation symbols. Tokens serve as lexical units, acting as building blocks in the structure of Python code. They are interpreted as essential components of the code, contributing to the design and structure of the program.

Answered By

1 Like


Related Questions