Skip to content

Instantly share code, notes, and snippets.

@efexen
Created May 24, 2016 22:33
Show Gist options
  • Save efexen/006c13e9ffe397cdb716652681f9b432 to your computer and use it in GitHub Desktop.
Save efexen/006c13e9ffe397cdb716652681f9b432 to your computer and use it in GitHub Desktop.
Ridiculous 1 line Python FizzBuzz for Python May
print str.join('\n', [str(str.join('', [out if number % divisor == 0 else '' for divisor, out in { 3: 'Fizz', 5: 'Buzz' }.items()]) or number) for number in range(1, 101)])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment