Q.

What is the output of the following code?
def foo(k):
k[0] = 1
q = [0]
foo(q)
print(q)

A. [0].
B. [1].
C. [1, 0].
D. [0, 1].
Answer» B. [1].
1.8k
0
Do you find this helpful?
14

View all MCQs in

Python Programming

Discussion

No comments yet