0
How to delete first inem from a list
2 Antworten
+ 8
Python provides you multiple options for deleting an element from a list. For deleting the first element, you can use any of the below methods:
One is by using pop()
> list.pop(0)
Another method is using del
> del list[0]
Another method is by using remove()
> list.remove(list[0])
+ 1
list.remove(obj)
from:
https://www.sololearn.com/learn/JUMP_LINK__&&__Python__&&__JUMP_LINK/2433/?ref=app