Skip to content

Instantly share code, notes, and snippets.

@mukulrawat1986
Created September 15, 2014 20:05
Show Gist options
  • Save mukulrawat1986/8c8bbfea647ddb34d940 to your computer and use it in GitHub Desktop.
Save mukulrawat1986/8c8bbfea647ddb34d940 to your computer and use it in GitHub Desktop.
Solution to CracklePop problem
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