Exercise: Enclosing Scope II

In this exercise, the function outer returns the result of inner. Modify inner so that outer returns the expected result.
def outer(x): def inner(): y = 2 #### complete code here ####
############################ return inner() print(outer(99)) # expected: 198 print(outer(3)) # expected: 6
Python
Setting up Python environment...
Output