A
Q. What is the output of the following code?
Code:
def foo(k):
k[0] = 1
q = [0]
foo(q)
print(q)
k[0] = 1
q = [0]
foo(q)
print(q)
- Correct Answer - Option(B)
- Views: 19
- Filed under category Python
- Hashtags:
Discusssion
Login to discuss.