Question

In Python, how to remove an element from list by index?


Annonce
Ad

Answer

>>> myList=['a','b','c']
>>> del myList[1]
>>> myList
['a', 'c']


[source]
# ID Query