def price_to_profit(lst):
    """
    Given a list of stock prices like the one above,
    return a list of of the change in value each day.
    The list of the profit returned from this function will be our input in max_profit.

    >>> price_to_profit([100, 105, 97, 200, 150])
    [0, 5, -8, 103, -50]
    >>> price_to_profit([205, 199, 188, 220, 235, 280, 301])
    [0, -6, -11, 32, 15, 45, 21]
    """
    profit = [lst[i+1] - lst[i] for i in range(len(lst) - 1)]
    profit.insert(0, 0)
    return profit