Skip to content

Instantly share code, notes, and snippets.

@axiomsofchoice
Created January 10, 2011 14:01
Show Gist options
  • Save axiomsofchoice/772797 to your computer and use it in GitHub Desktop.
Save axiomsofchoice/772797 to your computer and use it in GitHub Desktop.
Interview Zen Question 1: Implement FizzBuzz
# See http://www.interviewzen.com/interview/3PSvg
for i in range(1,101):
if i % 15 == 0:
print "FizzBuzz"
elif i % 3 == 0:
print "Fizz"
elif i % 5 == 0:
print "Buzz"
else:
print i
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment