Skip to content

Instantly share code, notes, and snippets.

Daniel Stoddart stoddart

View GitHub Profile
@stoddart
stoddart / fizzbuzz.py
Created Aug 3, 2012
Fizzbuzz in Python
View fizzbuzz.py
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
You can’t perform that action at this time.