Skip to content

Instantly share code, notes, and snippets.

View bananabrick's full-sized avatar

Arjun Nair bananabrick

  • Toronto, ON
View GitHub Profile
@bananabrick
bananabrick / crack_pop.py
Last active June 6, 2020 22:35
CracklePop
def crackle_pop(N):
for number in range(1, N + 1):
if number % 3 == 0 and number % 5 == 0:
print("CracklePop")
elif number % 3 == 0:
print("Crackle")
elif number % 5 == 0:
print("Pop")
else:
print(number)