how to remove last item from array in python code example Example: python remove last element from list record = record[:-1]