1list = [0, 1, 2, 3, 4, 5]
2
3print(list)
4# [0, 1, 2, 3, 4, 5]
5
6del list[0]
7print(list)
8# [1, 2, 3, 4, 5]
9
10del list[-2]
11print(list)
12# [1, 2, 3, 5]
13
14del list[0:2]
15print(list)
16# [3, 5]
1>>> l = [1, 2, 43, 3, 4]
2>>> l.pop(2) #enter the index as argument
343
4>>> l
5[1, 2, 3, 4]
1>>> a = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
2>>> del a[-1]
3>>> a
4[0, 1, 2, 3, 4, 5, 6, 7, 8]