From 752ca81f66d41a205845c3011995cc26a7ec405a Mon Sep 17 00:00:00 2001 From: welie <142896368+weliehster@users.noreply.github.com> Date: Sun, 3 Nov 2024 14:41:00 -0500 Subject: [PATCH] Update fizzbuzz.py --- fizzbuzz.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/fizzbuzz.py b/fizzbuzz.py index 218f7aa..6a7eb13 100644 --- a/fizzbuzz.py +++ b/fizzbuzz.py @@ -1,2 +1,10 @@ -# add your code here - +# Fizzbuzz +for number in range(1, 101): + if number % 3 == 0 and number % 5 == 0: + print("FizzBuzz") + elif number % 3 == 0: + print("Fizz:") + elif number % 5 == 0: + print("Buzz") + else: + print(number)