MCQs > IT & Programming > Python > Given the following code, what will be printed to the standard output? x = 5 def some_function(): print(x) x = 6 some_function() print(x)

Python MCQs

Given the following code, what will be printed to the standard output? x = 5 def some_function(): print(x) x = 6 some_function() print(x)

Answer

Correct Answer: UnboundLocalError (and traceback)

Explanation:

Note: This Question is unanswered, help us to find answer for this one

Python Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

Python Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it