This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |