You can delete an item or a slice from a list with del : Delete « List « Python Tutorial






x = [1, 2, 3, 4, 5]
print x
del x[1]                 # x is now [1, 3, 4, 5]
print x
del x[::2]               # x is now [3, 5]
print x








7.8.Delete
7.8.1.Deleting Elements
7.8.2.You can delete an item or a slice from a list with del