Skip to content

Instantly share code, notes, and snippets.

@kryggird
kryggird / crackle_pop.py
Created October 8, 2018 01:29
Crackle Pop implementation
for idx in range(1, 101):
if idx % 3 == 0 and idx % 5 != 0:
print('Crackle')
elif idx % 3 != 0 and idx % 5 == 0:
print('Pop')
elif idx % 3 == 0 and idx % 5 == 0:
print('CracklePop')
else:
print(idx)