deleting the last elemnet of series python code example Example: python remove last element from list record = record[:-1]