python remove the last element from a list code example Example: python remove last element from list record = record[:-1]