Akhil Narayanan Nair home

Python - List Deletion

================

a = [‘one’, ‘two’, ‘three’]

del a[1]

print(a)

list = [‘a’, ‘b’, ‘c’, ‘d’, ‘e’, ‘f’]

print(list)

del list[1:5]

print(list)