Examveda

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]

D. [1, 2, 3, (4)]
[1, 2, 3, (4)]

Answer: Option C


This Question Belongs to Python Program >> Functions In Python

Join The Discussion

Related Questions on Functions in Python