Last active
January 1, 2016 19:49
-
-
Save pcote/07c91ac05cd5106cef75 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| def fizzbuzz10(maxnum): | |
| (lambda mn: print("\n".join("{}: {}".format(num, | |
| (lambda n: ("" if n % 3 else "fizz") + | |
| ("" if n % 5 else "buzz") )(num)) | |
| for num in range(1, mn + 1))))(maxnum) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment