What is the output of the following code?

Category: PythonWhat is the output of the following code?
Editor">Editor Staff asked 2 years ago

What is the output of the following code?

def outer(x, y):
def inner1():
return x+y
def inner2():
return x*y
return (inner1, inner2)

(f1, f2) = outer(10, 25)
print(f1())
print(f2())

a)
35
250 
b)
250 35
c)
250
35
d)
35 250

1 Answers
Editor">Editor Staff answered 2 years ago

a)
35
250