l1=[2, 4, 6, 8]
l2=[1, 2, 3]
l1=l2
l2
a) [2, 4, 6, 8], shallow copy
b) [2, 4, 6, 8], deep copy
c) [1, 2, 3], shallow copy
d) [1, 2, 3], deep copy
What will be the output of the following Python code and state the type of copy that is depicted?
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
What will be the output of the following Python code and state the type of copy that is depicted?
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!