Single Choice Not Set

Q What will be the output after the following statements?
def xyz():
    a = 56
xyz()
print(a)

ID: #3964 Python Errors and Exceptions Handling 485 views
Question Info
#3964Q ID
Not SetDifficulty
Python Errors and Exceptions HandlingTopic

Choose the Best Option

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

  • A NameError
  • B 56
  • C a = 56
  • D xyz
Correct Answer

Explanation

NameError

Share This Question

Challenge a friend or share with your study group.