Single Choice Not Set

QWhat will be the output after the following statements?
def abc():
    global x
    x = 23
x = 10
abc()
print(x)

ID: #3970 Python Functions MCQ 438 views
Question Info
#3970Q ID
Not SetDifficulty
Python Functions MCQTopic

Choose the Best Option

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

  • A NameError
  • B 23
  • C 10
Correct Answer

Explanation

23

Share This Question

Challenge a friend or share with your study group.