83.
What will be the output of the following Python code?
def foo(i, x=[]):
    x.append(x.append(i))
    return x
for i in range(3):
    y = foo(i)
print(y)

88.
What will be the output of the following Python code?
def power(x, y=2):
    r = 1
    for i in range(y):
       r = r * x
    return r
print power(3)
print power(3, 3)

Read More Section(Functions in Python)

Each Section contains maximum 100 MCQs question on Functions in Python. To get more questions visit other sections.