πŸ“Š Python
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].
πŸ’¬ Discuss
βœ… Correct Answer: (B) [1].

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
122
Total Visits
πŸ“½οΈ
3 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
94%
Success Rate