Skip to content

Instantly share code, notes, and snippets.

@dniccum
Created February 24, 2018 21:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dniccum/ef239730c3dcd8ed9a58ae8c632c1ddc to your computer and use it in GitHub Desktop.
Save dniccum/ef239730c3dcd8ed9a58ae8c632c1ddc to your computer and use it in GitHub Desktop.
A basic Python application called FizzBuzz
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