From 88d31baa96d6f88850247eccba6ceea322e33775 Mon Sep 17 00:00:00 2001 From: Alesandra Birchum Date: Thu, 31 Oct 2024 18:35:38 -0400 Subject: [PATCH] Adding code for FizzBuzz assignment --- fizzbuzz.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/fizzbuzz.py b/fizzbuzz.py index 218f7aa..0a967a7 100644 --- a/fizzbuzz.py +++ b/fizzbuzz.py @@ -1,2 +1,11 @@ # add your code here +for i in range(1, 101): + if i % 3 == 0 and i % 5 == 0: + print("FizzBuzz") + elif i % 3 == 0: + print("Fizz") + elif i % 5 == 0: + print("Buzz") + else: + print(i) \ No newline at end of file