Created
October 19, 2011 04:58
-
-
Save kosugi/1297505 to your computer and use it in GitHub Desktop.
FizzBuzz
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
| # -*- coding: utf-8 -*- | |
| fb = ((lambda n: str(n), lambda n: 'Buzz'), (lambda n: 'Fizz', lambda n: 'FizzBuzz')) | |
| for n in range(1, 101): | |
| print fb[n % 3 == 0][n % 5 == 0](n) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment