Python-Quizzes | Output Type | Question 10

Last Updated :
Discuss
Comments

What will be displayed by the following code?

Python
def f(value, values):
    v = 1
    values[0] = 44
a = 3
v = [1, 2, 3]
f(a, v)
print(a, v[0])

1 1

1 44

3 1

3 44

Share your thoughts in the comments