Q. What is the output of the following code?
Code:
def foo(k): k[0] = 1 q = [0] foo(q) print(q)
β
Correct Answer: (B)
[1].
def foo(k): k[0] = 1 q = [0] foo(q) print(q)
You must be Logged in to update hint/solution