popΒΆ

List.pop()

Remove and return item at index (default last).

Raises IndexError if list is empty or index is out of range.