0% found this document useful (0 votes)
27 views1 page

Ex 6

This Python script imports the argv module to access command line arguments and assigns the script name to the first variable and additional arguments to subsequent variables, then prints out the name of the script and each variable to output the command line arguments.

Uploaded by

asd1080
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
27 views1 page

Ex 6

This Python script imports the argv module to access command line arguments and assigns the script name to the first variable and additional arguments to subsequent variables, then prints out the name of the script and each variable to output the command line arguments.

Uploaded by

asd1080
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

from sys import argv

script, a , b, c = argv

print "script name:", script


print "first variable:", a
print "second variable:", b
print "third variable:", c

You might also like