πŸ“Š Python
Q. What is the output of the following code?
Code:
def foo(k):
k[0] = 1
q = [0]
foo(q)
print(q)
  • (A) [0].
  • (B) [1].
  • (C) [1, 0].
  • (D) [0, 1].
πŸ’¬ Discuss
βœ… Correct Answer: (B) [1].

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
174
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Ram Sharma
Publisher
πŸ“ˆ
97%
Success Rate