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