Vidyalelo
Python · Q30

Functions in Python

Programming · Python · question 30

Q30

What will be the output of the following Python code? l1=[10, 20, 30] l2=l1 id(l1)==id(l2) l2=l1.copy() id(l1)==id(l2)

A.
False, False
B.
False, True
C.
True, True
D.
True, False
Answer

Answer: Option D

Solution

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