Thursday , September 19 2024

Which of the following variable names are illegal? (Select two answers)

Questions BankCategory: Python Essentials 1Which of the following variable names are illegal? (Select two answers)
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