get all elemnt from list except last one code example Example: python remove last element from list record = record[:-1]