From bdfb777d3ab5881fee07aa6c23afc34aa2a8cc45 Mon Sep 17 00:00:00 2001 From: James E Brown Date: Wed, 13 Nov 2024 16:13:25 -0500 Subject: [PATCH 1/2] Updated with my project code for fizzbuzz.py --- fizzbuzz.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/fizzbuzz.py b/fizzbuzz.py index 218f7aa..41dec9c 100644 --- a/fizzbuzz.py +++ b/fizzbuzz.py @@ -1,2 +1,10 @@ # add your code here - +for n in range(1, 5001): + if n % 3 == 0 and i % 5 == 0: + print("FizzBuzz") + elif n % 3 == 0: + print("Fizz") + elif n % 5 == 0: + print("Buzz") + else: + print(n) From 6342b0dbdb668895c4613aa1f4efc29618be5388 Mon Sep 17 00:00:00 2001 From: James E Brown Date: Wed, 13 Nov 2024 16:18:35 -0500 Subject: [PATCH 2/2] Update fizzbuzz.py --- fizzbuzz.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fizzbuzz.py b/fizzbuzz.py index 41dec9c..ceb8318 100644 --- a/fizzbuzz.py +++ b/fizzbuzz.py @@ -1,6 +1,6 @@ # add your code here for n in range(1, 5001): - if n % 3 == 0 and i % 5 == 0: + if n % 3 == 0 and n % 5 == 0: print("FizzBuzz") elif n % 3 == 0: print("Fizz")