Skip to content

Instantly share code, notes, and snippets.

@bharadwaj-raju
Created February 2, 2016 23:41
Show Gist options
  • Save bharadwaj-raju/d78ab8ade47a81963d44 to your computer and use it in GitHub Desktop.
Save bharadwaj-raju/d78ab8ade47a81963d44 to your computer and use it in GitHub Desktop.
# 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