[lang-ref] ( pop_item ) ( python )

def test_pop_item():
    # pop
    items = ['A', 'B', 'C', 'D', 'E']

    last_item = items.pop()

    assert last_item == 'E'
    assert items == ['A', 'B', 'C', 'D']