Last Updated: February 25, 2016
·
207
· iiseymour

Remove an item from a list with slicing

You can remove an item from a list by assigning it's position to an empty list:

a = [1,2,3,4,5]

a[2:3] = []

print a 
[1, 2, 4, 5]