Vidyalelo
Python · Q176

Functions in Python

Programming · Python · question 176

Q176

What will be the output of the following Python code? l1=[1, 2, 3, (4)] l2=l1.copy() l2 l1

A.
[1, 2, 3, (4)]
[1, 2, 3, 4]
B.
[1, 2, 3, 4]
[1, 2, 3, (4)]
C.
[1, 2, 3, 4]
[1, 2, 3, 4]
Answer
D.
[1, 2, 3, (4)]
[1, 2, 3, (4)]

Answer: Option C

Solution

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