Q. Predict the output of following two parts. Are the outputs same? Are the outputs different? Why? Write the coding.
(a)
L1, L2 = [2, 4], [2, 4]
L3 = L2
L2[1] = 5
print(L3)
(b)
L1, L2 = [2, 4], [2, 4]
L3 = list(L2)
L2[1] = 5
print (L3)
Answers
Answered by
2
Explanation:
please make as thanks
please make as thanks
Attachments:
![](https://hi-static.z-dn.net/files/d2c/7e82753d0fb3dc1b59eec434701a8ad9.jpg)
Answered by
1
Answer:
refer to the attachment
please drop some ❤️❤️❤️
Explanation:
please f-o-l-l-o-w m-e bro
Attachments:
![](https://hi-static.z-dn.net/files/db9/b38bde2a713f897867b82571e0e6cf60.jpg)
Similar questions