From 21fc9875f53a4b5b02fd7637bdd15b24a248ebbc Mon Sep 17 00:00:00 2001 From: meshajamil <55927465+meshajamil@users.noreply.github.com> Date: Wed, 21 Oct 2020 20:26:03 +0500 Subject: [PATCH] FizzBuzz in Python --- FizzBuzz in Python | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 FizzBuzz in Python diff --git a/FizzBuzz in Python b/FizzBuzz in Python new file mode 100644 index 0000000..4aa92db --- /dev/null +++ b/FizzBuzz in Python @@ -0,0 +1,13 @@ +#Code by Mahnoor + +for fizzbuzz in range(51): + if fizzbuzz % 3 == 0 and fizzbuzz % 5 == 0: + print("Its a fizzbuzz") + continue + elif fizzbuzz % 3 == 0: + print("Its a fizz") + continue + elif fizzbuzz % 5 == 0: + print("Its a buzz") + continue + print(fizzbuzz)