Created
September 15, 2014 20:05
-
-
Save mukulrawat1986/8c8bbfea647ddb34d940 to your computer and use it in GitHub Desktop.
Solution to CracklePop problem
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
li = ["CracklePop" if i%5==0 and i%3==0 else "Crackle" if i%3==0 else "Pop" if i%5==0 else i for i in xrange(1,101)] | |
for i in li: | |
print i |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment