pwtools
Pop all items from lst and return a shorter copy of lst.
lst (list)
items (sequence)
lst2 – Copy of lst with items removed.
list