Skip to content

Instantly share code, notes, and snippets.

@carlosdiaz
Created July 13, 2015 21:32
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 carlosdiaz/e17be9ff3923c6da9094 to your computer and use it in GitHub Desktop.
Save carlosdiaz/e17be9ff3923c6da9094 to your computer and use it in GitHub Desktop.
#!/usr/bin/env python
def FizzBuzz():
i=0
while (i<101):
print i
if i % 15 == 0:
print "FizzBuzz"
elif i % 3 == 0:
print "Fizz"
elif i % 5 == 0:
print "Buzz"
i+=1
if __name__=='__main__':
FizzBuzz()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment