Created
May 26, 2014 22:54
-
-
Save autocorr/05df1cfd0ea16460d9b1 to your computer and use it in GitHub Desktop.
FizzBuzz implementation in 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
wl = [(3, 'Fizz'), | |
(5, 'Buzz'), | |
(7, 'Qux')] | |
for i in range(0, 101): | |
print ''.join([w for n, w in wl if not i % n]) or i |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment