Created
March 5, 2021 19:39
-
-
Save Robin-Andrews/35864b006c218a8c0185d6b782071955 to your computer and use it in GitHub Desktop.
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
i in range(1, 51): | |
if i % 3 == 0 and i % 5 == 0: | |
print("fizzbuzz") | |
elif i % 5 == 0: | |
print("buzz") | |
elif i % 3 == 0: | |
print("fizz") | |
else: | |
print(i) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment