From 7412332dd9c2cbbf0c14a50716b69e46f8d17409 Mon Sep 17 00:00:00 2001 From: Mainak Dasgupta <43308859+Mainak29@users.noreply.github.com> Date: Tue, 13 Oct 2020 14:40:14 +0530 Subject: [PATCH 1/2] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index e0283d6..c744091 100644 --- a/README.md +++ b/README.md @@ -9,6 +9,7 @@ Note your Pull Request will only get approved if you insert only one line to thi Who **like** the SBCS mascot, Bytes? (List your name here). - Lise +- Mainak Who **DOES NOT like** the SBCS mascot, Bytes? (List your name if you want a new Bytes). - No one From fcd823f666cf464eeeda237bbdb0a9bc3ce8f17a Mon Sep 17 00:00:00 2001 From: Mainak Dasgupta <43308859+Mainak29@users.noreply.github.com> Date: Tue, 13 Oct 2020 14:41:38 +0530 Subject: [PATCH 2/2] Created Fizz-Buzz game --- Fizz Buzz.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 Fizz Buzz.py diff --git a/Fizz Buzz.py b/Fizz Buzz.py new file mode 100644 index 0000000..f9dc553 --- /dev/null +++ b/Fizz Buzz.py @@ -0,0 +1,17 @@ +''' Fizz Buzz Game +the number is divisible by 3 and 5 is Fizz Buzz and fizz for 3 and Buzz for 5''' + +print("Lets start the Fizz Buzz Game",end='\n\n') +t=int(input("Please enter the end range of the game:")) +p=t+1 +p=int(p) +for i in range(1,p): + if(i%3==0 and i%5==0): + print(i,"= Fizz Buzz") + else: + if(i%3==0): + print(i,"= Fizz") + elif(i%5==0): + print(i,"= Buzz") + else: + print(i)