Python Function Reference

pop
Remove the item at the given position in the list, and return it.
Python 3.13
list.pop([i])
i
The index of the item to remove.
Examples
Python 3.13
>>> a = [1, 2, 3]
>>> a.pop()
3