The argv attribute of the sys module is a list : command line « Buildin Module « Python Tutorial






The first item in the argv list is the path to the module; 
the rest is made up of arguments passed in. 


print sys.argv
print sys.argv[1]








14.1.command line
14.1.1.The argv attribute of the sys module is a list
14.1.2.Printing the command line arguments in reverse order
14.1.3.Handling Command-Line Arguments