Skip to content

Instantly share code, notes, and snippets.

@qirh
Last active July 29, 2019 23:45
Show Gist options
  • Save qirh/7dd3e23900e1b36b28ae3237dc6370e1 to your computer and use it in GitHub Desktop.
Save qirh/7dd3e23900e1b36b28ae3237dc6370e1 to your computer and use it in GitHub Desktop.
#!/usr/bin/python3
def crackle_pop():
for i in range(1, 101):
if i%15 == 0:
print('CracklePop')
elif i%5 == 0:
print('Pop')
elif i%3 == 0:
print('Crackle')
else:
print(i)
crackle_pop()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment