Last active
August 29, 2015 14:01
-
-
Save rectangletangle/1368fd548694ec8cd4c3 to your computer and use it in GitHub Desktop.
A PERFECTLY NORMAL AND SANE FIZZBUZZ
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
print('\n'.join((exec('def fizzbuzz():\n\tfor i in range({}):\n\t\t'.format('*' + repr((locals().update({'start': 1, 'stop': 101}), start, stop)[1:])) + '\n\t\t'.join('elif i == {}:\n\t\t\tyield "{}"'.format(i, 'Fizz' * (not i % 3) + 'Buzz' * (not i % 5) or i)[abs(~i) if i == 1 else None:] for i in range(start, stop))), locals()['fizzbuzz'])[1]())) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
why???