supprimer l'élément de la liste python
# removes item with given name in list
list = [15, 79, 709, "Back to your IDE"]
list.remove("Back to your IDE")
# removes last item in list
list.pop()
# pop() also works with an index...
list.pop(0)
# ...and returns also the "popped" item
item = list.pop()
supprimer la valeur de la liste python par valeur
>>> a = ['a', 'b', 'c', 'd']
>>> a.remove('b')
>>> print a
['a', 'c', 'd']
comment supprimer un élément dans une liste par index python
list = [0, 1, 2, 3, 4, 5]
print(list)
# [0, 1, 2, 3, 4, 5]
del list[0]
print(list)
# [1, 2, 3, 4, 5]
del list[-2]
print(list)
# [1, 2, 3, 5]
del list[0:2]
print(list)
# [3, 5]
liste python supprimer à l'index
a = ['a', 'b', 'c', 'd']
a.pop(1)
# now a is ['a', 'c', 'd']