ID EN
Array

pop

Python 3.11

Removes the item with the index i from the array and returns it. The optional argument defaults to -1, so that by default the last item is removed and returned.

Syntax

PYTHON
pop([i])