A

Admin • 833K Points
Coach

Q. What will be the output of the following Python code?

Code:
def fn(var1):
var1.pop(1)
var1=[1,2,3]
fn(var1)
print(var1)
  • (A) [1,2,3]
  • (B) [1,3]
  • (C) [2,3]
  • (D) [1,2]
  • Correct Answer - Option(B)
  • Views: 20
  • Filed under category Python
  • Hashtags:

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.