QuestionQ124

VerifiedComputer Programming and Python Fundamentals

Which of the following variable names are invalid?

Choose two
Explanation

In Python, True is a reserved Boolean literal and and is a language keyword, so neither can be assigned as a variable name. Python is case-sensitive; therefore, true and TRUE are valid identifiers.

Community Discussion

No comments yet. Be the first to start the discussion!