KnowledgeBoat Logo
|

Informatics Practices

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

Python Funda

1 Like

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.

Answered By

2 Likes


Related Questions