Vidyalelo
Python · Q84

Functions in Python

Programming · Python · question 84

Q84

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

A.
[0]
Answer
B.
[1]
C.
[1, 0]
D.
[0, 1]

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board