Skip to content

Instantly share code, notes, and snippets.

@Battleroid
Created April 8, 2013 06:57
Show Gist options
  • Save Battleroid/5334773 to your computer and use it in GitHub Desktop.
Save Battleroid/5334773 to your computer and use it in GitHub Desktop.
Fizzbuzz in python. Neato.
import os
for i in range(0, 100):
if i % 15 == 0:
print i,': FizzBuzz'
elif i % 3 == 0:
print i,': Fizz'
elif i % 5 == 0:
print i,': Buzz'
else:
print i
os.system('pause')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment