Single Choice Not Set

QWhat will be the output after the following statement?
a = true

ID: #3962 Python Errors and Exceptions Handling 328 views
Question Info
#3962Q ID
Not SetDifficulty
Python Errors and Exceptions HandlingTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A No Error ✔ ✖
  • B TypeError ✔ ✖
  • C ValueError ✔ ✖
  • D NameError ✔ ✖
Correct Answer

Explanation

NameError

---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
Input In [52], in ()
----> 1 a = true

NameError: name 'true' is not defined
 

Share This Question

Challenge a friend or share with your study group.