Which of the following will be the output of the below code snippet? x = 10 def foo(): print(x) x = x - 1 foo() print(x)
Correct Answer: UnboundLocalError: local variable 'x' referenced before assignment
Explanation:
Note: This Question is unanswered, help us to find answer for this one
More Python MCQ Questions
Python MCQs | Topic-wise