From 90192abf52438aa0d30dcb7db62acca13104e9dc Mon Sep 17 00:00:00 2001 From: ryxclaws <113253359+ryxclaws@users.noreply.github.com> Date: Fri, 29 Sep 2023 12:32:27 -0400 Subject: [PATCH] Update q03.py Fixed the program from stating the maximum was the minimum in Line #22. --- chapter_07/q03.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chapter_07/q03.py b/chapter_07/q03.py index ed4d132..bd10286 100644 --- a/chapter_07/q03.py +++ b/chapter_07/q03.py @@ -19,7 +19,7 @@ def main(): print(rainfall_monthly.index(min(rainfall_monthly))+1) # get the maximum. - print("The minimum rainfall was", max(rainfall_monthly), "in the month #", end="") + print("The maximum rainfall was", max(rainfall_monthly), "in the month #", end="") print(rainfall_monthly.index(max(rainfall_monthly))+1) def get_rainfall():