+ 1

What must be the output of this code? Plzz answer with proper solution......

list1=[1,2] list2=list1[:] a=list2 is list1 print(list2) print(a)

15th Dec 2019, 7:02 PM
Rakesh Minase
Rakesh Minase - avatar
2 Answers
+ 3
We have got the same question with nearly identical code 1 day ago. Here is what i posted: https://code.sololearn.com/cHjYm28V3w1W/?ref=app
15th Dec 2019, 7:47 PM
Lothar
Lothar - avatar