Skip to content

Instantly share code, notes, and snippets.

@arihantraj
Created December 4, 2009 16:33
Show Gist options
  • Save arihantraj/249122 to your computer and use it in GitHub Desktop.
Save arihantraj/249122 to your computer and use it in GitHub Desktop.
#This is the code for the question in the page
#http://pylearn.pbworks.com/Print-Parameters
import sys
for arg in sys.argv:
print arg
if len(sys.argv)-1:
print "The number of command line arguments are: ",len(sys.argv)-1
else:
print "No arguments"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment