Created
February 24, 2018 21:24
-
-
Save dniccum/ef239730c3dcd8ed9a58ae8c632c1ddc to your computer and use it in GitHub Desktop.
A basic Python application called FizzBuzz
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
for x in range(1, 101): | |
if x % 3 == 0 and x % 5 != 0: | |
print "Fizz" | |
elif x % 5 == 0 and x % 3 != 0: | |
print "Buzz" | |
elif x % 5 == 0 and x % 3 == 0: | |
print "FizzBuzz" | |
else: | |
print x |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment