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