Examveda

What will be the output of the following Python code?
def change(var, lst):
    var = 1
    lst[0] = 44
k = 3
a = [1, 2, 3]
change(k, a)
print(k)
print(a)

A. 3
[44, 2, 3]

B. 1
[1,2,3]

C. 3
[1,2,3]

D. 1
[44,2,3]

Answer: Option A


This Question Belongs to Python Program >> Lists In Python

Join The Discussion

Related Questions on Lists in Python