PRP201c_-_SP_2025_-_FE_3807.webp
E

PRP201c_-_SP_2025_-_FE_3807.webp

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]

Thông tin

Category
PRP201c
Thêm bởi
eternal_purity1
Ngày thêm
Lượt xem
1,532
Lượt bình luận
3
Rating
0.00 star(s) 0 đánh giá

Share this media

Back
Bên trên Bottom