Question #4862
Proposée par Answiki
le 10/12/2021 à 16:43:25 UTC
Comment supprimer un élément d'une liste par son index en Python ?
Merged questions
Answer
Submitted by Answiki
on 12/10/2021 at 04:44:09 PM UTC
En Python, il est possible de supprimer un élément d'une liste par son index grâce à l'instruction del
:
>>> myList=['a','b','c']
>>> del myList[1]
>>> myList
['a', 'c']
Answer by Answiki on 12/10/2021 at 04:44:09 PM
En Python, il est possible de supprimer un élément d'une liste par son index grâce à l'instruction del
:
>>> myList=['a','b','c']
>>> del myList[1]
>>> myList
['a', 'c']
Question by Answiki 12/10/2021 at 04:43:25 PM
Comment supprimer un élément d'une liste par son index en Python ?
# | ID | Query | URL | Count |
---|
Icons proudly provided by Friconix.