Created
December 4, 2009 16:33
-
-
Save arihantraj/249122 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
#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