Skip to content

Instantly share code, notes, and snippets.

Eileen EllySmore

  • Somewhere over the rainbow
View GitHub Profile
@EllySmore
EllySmore / crackle_pop.py
Last active Jan 25, 2019
Recurse Center CracklePop
View crackle_pop.py
# Write a program that prints out the numbers 1 to 100 (inclusive).
#If the number is divisible by 3, print Crackle instead of the number.
#If it's divisible by 5, print Pop.
#If it's divisible by both 3 and 5, print CracklePop. You can use any language.
for i in xrange(1, 101):
if i % 3 == 0 and i % 5==0:
print i, "CracklePop"
elif i % 3 == 0:
print i, "Crackle"
You can’t perform that action at this time.