Created
July 24, 2018 08:21
-
-
Save sly01/fabf27ac53aed93d2cc81f0cbaee7aaa to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| #!/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