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