examples/lists/pop.py
from __future__ import print_function

letters = ['a', 'b', 'c', 'd']
print(letters)          # ['a', 'b', 'c', 'd']

print(letters.pop())    # d
print(letters)          # ['a', 'b', 'c']

Remove and return the last element of a list. Throws an exception if the list was empty.