Created
October 4, 2016 18:20
-
-
Save apsicle/3865501fb3af6b8211a15f97141aceb2 to your computer and use it in GitHub Desktop.
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
if __name__ == "__main__": | |
for num in range(1,101): | |
out_str = "" | |
if(num % 3 == 0): | |
out_str += "Crackle" | |
if(num % 5 == 0): | |
out_str += "Pop" | |
if(not out_str): | |
out_str += str(num) | |
print(out_str) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment