Skip to content

Instantly share code, notes, and snippets.

@TechplexEngineer
Created May 10, 2016 15:48
Show Gist options
  • Select an option

  • Save TechplexEngineer/faa689f74a1092ca3dd42643a05a5061 to your computer and use it in GitHub Desktop.

Select an option

Save TechplexEngineer/faa689f74a1092ca3dd42643a05a5061 to your computer and use it in GitHub Desktop.
#! /usr/bin/env python
for x in xrange(1,101):
if x % 3 == 0 and x % 5 == 0:
print('Fizz-Buzz')
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