Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
# Program to print string n times
# Usage: printLoop.py [string to print] [number of times to print]
import sys
scriptName, string, count = sys.argv
for i in range(0, count):
print string
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.