KnowledgeBoat Logo
|

Computer Science

Assertion (A): 'Rollnumber' and 'rollnumber' are same identifiers.

Reasoning (R): Python is a case-sensitive language.

  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 Funda

2 Likes

Answer

A is false but R is true.

Explanation
In Python, 'Rollnumber' and 'rollnumber' are not the same identifiers because Python is a case-sensitive language. This means Python differentiates between uppercase and lowercase letters. For example, 'Rollnumber' (with an uppercase 'R') and 'rollnumber' (with a lowercase 'r') are considered distinct identifiers in Python.

Answered By

2 Likes


Related Questions