Skip to content

Instantly share code, notes, and snippets.

@cessor
Created May 19, 2014 15:05
Show Gist options
  • Select an option

  • Save cessor/8778805d6f76aa464a9a to your computer and use it in GitHub Desktop.

Select an option

Save cessor/8778805d6f76aa464a9a to your computer and use it in GitHub Desktop.
FizzBuzz in 114 Characters Python
from itertools import compress;print[''.join(compress(('Fizz', 'Buzz'),(i%3==0,i%5==0)))or i for i in range(1,60)]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment