From 2e1852fcda50fdd5abbb9891b306c852c6429885 Mon Sep 17 00:00:00 2001 From: Dorukozar <95736100+Dorukozar@users.noreply.github.com> Date: Thu, 13 Jun 2024 15:06:35 -0400 Subject: [PATCH 1/2] Updated problem_2.py Doruk Ozar --- problem_2.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/problem_2.py b/problem_2.py index 0b75a3c..de69aea 100644 --- a/problem_2.py +++ b/problem_2.py @@ -6,6 +6,7 @@ while True: fibo.append(fibo[-1]+fibo[-2]) - if fibo[-1]>4000000: break + if fibo[-1]>4000000: + break print sum(filter(lambda x:x%2==0,fibo)) From 48c0bf085998a463a47fba65f8a7f4d2785e7a79 Mon Sep 17 00:00:00 2001 From: Dorukozar <95736100+Dorukozar@users.noreply.github.com> Date: Thu, 13 Jun 2024 15:37:21 -0400 Subject: [PATCH 2/2] added comments on prime.py --- primes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/primes.py b/primes.py index 7b625e3..3ba8b7b 100644 --- a/primes.py +++ b/primes.py @@ -134,4 +134,4 @@ def demo(): if __name__ == '__main__': demo() - + # this is the main funtion that is called when the script is run.