How can you make copy of a list using

(b) slicing

 

Answer:

Code:

list1 = [ 12 , 1 , 3 , 4 , 12 , 8 , 9 , 12 ]

list2=list1[:]

Question 1b Short Answer.jpg

 

 

 

 

 

 

Go Ad-free
Davneet Singh's photo - Co-founder, Teachoo

Made by

Davneet Singh

Davneet Singh has done his B.Tech from Indian Institute of Technology, Kanpur. He has been teaching from the past 14 years. He provides courses for Maths, Science, Social Science, Physics, Chemistry, Computer Science at Teachoo.