From 314ad64df0dd35f9b17b0c357360e0136b58a0f3 Mon Sep 17 00:00:00 2001 From: Cansu Toraman <73640493+botanyse@users.noreply.github.com> Date: Wed, 6 Aug 2025 18:54:27 +0200 Subject: [PATCH] Update chap15.ipynb Here time_to_int() used as if it's a standalone function but it is defined as a method inside Time class. It wouldn't work if it was not defined in earlier sections as a standalone function. --- chapters/chap15.ipynb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chapters/chap15.ipynb b/chapters/chap15.ipynb index 52fb9c8..b5f9f5f 100644 --- a/chapters/chap15.ipynb +++ b/chapters/chap15.ipynb @@ -409,7 +409,7 @@ "\n", " def add_time(self, hours, minutes, seconds):\n", " duration = make_time(hours, minutes, seconds)\n", - " seconds = time_to_int(self) + time_to_int(duration)\n", + " seconds = Time.time_to_int(self) + Time.time_to_int(duration)\n", " return Time.int_to_time(seconds)" ] },