Last active
August 3, 2020 15:11
-
-
Save uliang/cf7c26bc03e8d1c6761b19964b11e6ec to your computer and use it in GitHub Desktop.
FizzBuzz solution 1
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
for i in range(1, 100) : | |
if not any(i%5, i%3) : | |
print("FizzBuzz") | |
elif not bool(i%5) : | |
print("Buzz") | |
elif not bool(i%3) : | |
print("Fizz") | |
else: | |
print(i) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment