What will be the output of the following code?
def outer(): x = 10 def inner(): nonlocal x x += 5 return x return inner closure = outer() print(closure()) print(closure())
15
20
10
5
This question is part of this quiz :