diff --git a/6-functions/32_stonks.py b/6-functions/32_stonks.py index d2ba9d6..08f0721 100644 --- a/6-functions/32_stonks.py +++ b/6-functions/32_stonks.py @@ -7,7 +7,7 @@ def price_at(i): return stock_prices[i-1] def max_price(a, b): - mx = 0 + mx = price_at(a) for i in range(a, b + 1): mx = max(mx, price_at(i)) return mx