Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fizz-Buzz game created #26

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions Fizz Buzz.py
Original file line number Diff line number Diff line change
@@ -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)
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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