Skip to content

Instantly share code, notes, and snippets.

@sly01
Created July 24, 2018 08:21
Show Gist options
  • Save sly01/fabf27ac53aed93d2cc81f0cbaee7aaa to your computer and use it in GitHub Desktop.
Save sly01/fabf27ac53aed93d2cc81f0cbaee7aaa to your computer and use it in GitHub Desktop.
#!/usr/bin/env python3.6
message = input("Enter a message: ")
count = input("Number of repeats [1]: ").strip()
if count:
count = int(count)
else:
count = 1
def multi_echo(message, count):
while count > 0:
print(message)
count -= 1
multi_echo(message, count)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment