Skip to content

Instantly share code, notes, and snippets.

@myano
Created May 13, 2015 15:51
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save myano/ced2bc716bdb86903f57 to your computer and use it in GitHub Desktop.
Save myano/ced2bc716bdb86903f57 to your computer and use it in GitHub Desktop.
#!/usr/bin/env python3
upper_limit = input("Highest number you'd like to go to: ")
for x in range(1, int(upper_limit)):
if x % 3 == 0 and x % 5 == 0:
print('FizzBuzz')
elif x % 3 == 0:
print('Fizz')
elif x % 5 == 0:
print('Buzz')
else:
print(x)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment