Created
March 28, 2015 08:34
-
-
Save cascad-s/0658d71ab06710406e7c to your computer and use it in GitHub Desktop.
fuzz..
This file contains 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
def fuzz(a): | |
if a % 3 == 0 and a % 5 == 0: | |
return "Fizz Buzz" | |
elif a % 3 == 0: | |
return "Fizz" | |
elif a % 5 == 0: | |
return "Buzz" | |
else: | |
return str(a) | |
z = fuzz(30) | |
print(z) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment