Created
May 11, 2016 05:32
-
-
Save xuefeng-huang/ccbb459e94cc5a412b188e12e29e149c to your computer and use it in GitHub Desktop.
fizzbuzz 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
for x in xrange(100): | |
print ('fizz'[x % 3 * 4:] + 'buzz'[x % 5 * 4:] or x) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment