Jan 13 in Python
Q:

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())

i) 

35

250   

ii) 250 35

iii) 

250

35

iv) 35 250

1 Answer

0 votes
Jan 13
i)

35

250

Related questions

0 votes
Dec 14, 2019 in Python
0 votes
Jun 24, 2020 in Python
...