Baheeg Training and Test Exam

Python intermediate Level

Score: 0 / 0 answered

Progress: 0 of 817 qs

time elap: 00:00

Question 1: What is the output of the following code?

def outer_function(x):
    def inner_function(y):
        return x * y
    return inner_function

closure = outer_function(5)
print(closure(3))