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

32.
What does the nonlocal keyword do when used in a function?

37.
Which of these is not true about recursion?

38.
Which of the following is the use of function in python?

Read More Section(Functions in Python)

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