Skip to content

Instantly share code, notes, and snippets.

Last active Dec 11, 2015
What would you like to do?
def fizzbuzz(n):
for i in xrange(1, n+1): print [i, 'Fizz', 'Buzz', 'FizzBuzz'][(i%3 == 0) + 2 * (i % 5 == 0)]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment