Login
From:
learnbyexample
(Uncensored)
subscribe
Python tip 16: delete list elements using index or slice
https://learnbyexample.github.io/tips/python-tip-16/
links
backlinks
Roast topics
Find topics
Find it!
The pop() method removes the last element of a list by default. You can pass an index to delete that specific item and the list will be automatically re-arranged. Return value is the element being deleted.