A
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)
var1.pop(1)
var1=[1,2,3]
fn(var1)
print(var1)
- Correct Answer - Option(B)
- Views: 20
- Filed under category Python
- Hashtags:
Discusssion
Login to discuss.