pop last 2 items array python code example Example: python remove last element from list record = record[:-1]