Question Detail

COS 102 lecture 4 Objective Question

Question

What is the primary rule regarding the case of identifiers in Python?
Options
A Python identifiers are case-insensitive.
B All identifiers must be in lowercase.
C Python identifiers are case-sensitive.
Correct Answer
D All identifiers must be in uppercase.
Correct Answer

Option C is the correct answer.

Detailed Explanation

Page 18 explicitly states, 'Python is a case-sensitive language and this behavior extends to identifiers. Thus, Labor and labor are two distinct identifiers in Python.'

Hint

Consider the example given for 'Labor' and 'labor' on page 18.

Question Info