Examveda
Examveda

Is Python case sensitive when dealing with identifiers?

A. no

B. yes

C. machine dependent

D. none of the mentioned

Answer: Option B

Solution(By Examveda Team)

Python is case sensitive when dealing with identifiers.
Identifiers in Python, such as variable names, function names, and class names, are case-sensitive. This means that Python considers uppercase and lowercase letters as distinct characters. For example, variables "myVar" and "myvar" would be treated as two separate identifiers in Python. It's essential to maintain consistency in the casing of identifiers throughout the code to avoid errors related to undefined or misinterpreted identifiers.

This Question Belongs to Python Program >> Introduction To Python

Join The Discussion

Related Questions on Introduction to Python