Created
March 18, 2013 23:15
-
-
Save pcote/5191830 to your computer and use it in GitHub Desktop.
Inspired by FizzBuzz Enterprise Edition found here: https://github.com/Mikkeren/FizzBuzzEnterpriseEdition
This is my version using overengineered Python.
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
#worlds_worst_fizzbuzz.py | |
print(type("",(),{"__call__": | |
lambda self, start, end: | |
[(n, (lambda x: ("fizz" if x % 3 == 0 else "") + ("buzz" if x % 5 == 0 else ""))(n)) | |
for n in range(start,end+1)] | |
})()(1,50) | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment