Kizspy | Question: 22
(Choose 1 answer)
Consider a function "fun" which is defined below:
def fun(x):
x[0] = 5
return x
Now you define a list which has three numbers in it.
g= [10,11,12]
Which of the following will be the output of the given print statement:
print fun(g), g
A. [5, 11, 12] [5, 11, 12]
B. [5, 11, 12] [10, 11, 12]
C. [10, 11, 12] [10, 11, 12]
D. [10, 11, 12] [5, 11, 12]