Skip to content

Instantly share code, notes, and snippets.

View stoddart's full-sized avatar

Daniel Stoddart stoddart

View GitHub Profile
@stoddart
stoddart / fizzbuzz.py
Created August 3, 2012 19:41
Fizzbuzz in Python
for x in range (1, 101):
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