Which of the following variable names are illegal? (Select two answers)
- and
- true
- True
- TRUE
Explanation: True and and are Python keywords (reserved words), and they cannot be used as variable names. And since Python is case-sensitive, the names true and TRUE are perfectly legal, though not necessarily the best names.
More Questions: Python Essentials 1 – Module 2 Test
Please login or Register to submit your answer