Created
July 29, 2014 16:14
-
-
Save odubno/b15dc5d2535c8be4be10 to your computer and use it in GitHub Desktop.
Thinkful - fizz buzz - oleh
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
user_guess = range(101) | |
while True: | |
user_answer = int(raw_input("Your answer: ")) | |
if user_answer % 3 == 0 and user_answer % 5 == 0: | |
print "Fizz Buzz" | |
elif user_answer % 3 == 0: | |
print "Fizz" | |
elif user_answer % 5 == 0: | |
print "Buzz" | |
else: | |
print user_answer |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment