Deleting Elements : Delete « List « Python Tutorial






names = ['A', 'B', 'C', 'D', 'E']
del names[2]
print names
7.8.Delete
7.8.1.Deleting Elements
7.8.2.You can delete an item or a slice from a list with del