+ 5
Is there function deleting data from list?
Is there function like a alternative append(), deleting data from list. I doesn't mean set this to 0.
7 ответов
+ 7
list.remove(value) or del list[index]
+ 4
You have also list.pop(index)
+ 2
list.remove(value)
or
list.pop() - it will delete last element of the list.
+ 1
Thanks you guys!
0
how to undo
0
?
0
Undo what? (you mean recall the element that has been deleted?)