CBSE Class 11 Computer Science Question 94 of 98

Python Programming Fundamentals — Question 8

Back to all questions
8
Question

Question 8

"AISSCE-2020" is a valid string variable in Python.

Answer

False

Reason — In Python, variable names cannot contain hyphens. They can only contain letters (both uppercase and lowercase), digits, and underscores, but they cannot start with a digit. Therefore, "AISSCE-2020" is invalid string variable name because it contains a hyphen.