del no of elements in lis

Solutions on MaxInterview for del no of elements in lis by the best coders in the world

showing results for - "del no of elements in lis"
Paul
25 Feb 2016
1# del multiple elements
2
3list1 = [11, 5, 17, 18, 23, 50] 
4  
5# removes elements from index 1 to 4
6# i.e. 5, 17, 18, 23 will be deleted
7del list1[1:5]
8  
9print(*list1)
10
11#11 50
similar questions
queries leading to this page
del no of elements in lis