Skip to content

Instantly share code, notes, and snippets.

@kryggird
Created October 8, 2018 01:29
Show Gist options
  • Save kryggird/df9dc835e666744f916b5052fdda3360 to your computer and use it in GitHub Desktop.
Save kryggird/df9dc835e666744f916b5052fdda3360 to your computer and use it in GitHub Desktop.
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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment