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