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. 35 250 c. 250 35 d. 250 35

Questions & AnswersCategory: Programming LanguageWhat 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. 35 250 c. 250 35 d. 250 35
Adam 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. 35 250

c. 250

35

d. 250 35