From 0eb1f10fff4f7e000a8f7c169376be32e92838bc Mon Sep 17 00:00:00 2001 From: Jakub Sova Date: Mon, 16 Jun 2025 14:39:53 +0200 Subject: [PATCH] Update 32_stonks.py --- 6-functions/32_stonks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/6-functions/32_stonks.py b/6-functions/32_stonks.py index d2ba9d6..59b92f6 100644 --- a/6-functions/32_stonks.py +++ b/6-functions/32_stonks.py @@ -14,7 +14,7 @@ def max_price(a, b): def min_price(a, b): mn = price_at(a) - for i in range(a, b + 1): + for i in range(a + 1, b + 1): mn = min(mn, price_at(i)) return mn