Skip to content

Instantly share code, notes, and snippets.

@apsicle
Created October 4, 2016 18:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save apsicle/3865501fb3af6b8211a15f97141aceb2 to your computer and use it in GitHub Desktop.
Save apsicle/3865501fb3af6b8211a15f97141aceb2 to your computer and use it in GitHub Desktop.
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