Skip to content

Instantly share code, notes, and snippets.

@jasdumas
Last active August 29, 2015 13:59
Show Gist options
  • Save jasdumas/10652443 to your computer and use it in GitHub Desktop.
Save jasdumas/10652443 to your computer and use it in GitHub Desktop.
Hacker School Application code
def CracklePop():
listA = [ ]
for count in range(1, 101):
listA.append(count)
for p in listA:
if p%3==0 and p%15!=0:
print "Crackle"
elif p%5==0 and p%15!=0:
print "Pop"
elif p%15==0:
print "CracklePop"
else:
print p
CracklePop()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment