Thursday , September 19 2024

Which of the following statements are true? (Select two answers)

Questions BankCategory: Python Essentials 1Which of the following statements are true? (Select two answers)
Which of the following statements are true? (Select two answers)

  • The None value can be assigned to variables
  • The None value cannot be used outside functions
  • The None value can be compared with variables
  • The None value can be used as an argument of arithmetic operators

Explanation: The None value can be assigned to any variable, inside and outside of functions. It can also be used in conditionals and loops. However, it cannot be used in arithmetic operations.

More Questions: Python Essentials 1 – Module 4 Test