Created
January 24, 2019 10:39
-
-
Save andreasvirkus/1fa2e47f1080c80445a8f21c167a3c06 to your computer and use it in GitHub Desktop.
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
#!/usr/bin/env python | |
for x in range(1,101): | |
s = "" | |
if x % 3 == 0: | |
s += "Fizz" | |
if x % 5 == 0: | |
s += "Buzz" | |
if s == "": | |
s = x | |
print s |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment