forked from lugnitdgp/Learn-Python
- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsampleinput.py
More file actions
Latest commit
12 lines (10 loc) · 368 Bytes
/
Copy pathsampleinput.py
File metadata and controls
12 lines (10 loc) · 368 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
# import command line argument reader 'argv' from the 'sys' python module
fromsysimportargv
# takes the four arguments after the 'python' command,
# and assigns to the variables 's', 'f', 'ss', and 't'
s,f,ss,t=argv
# prints the four arguments on separate lines with text
print"the script is" , s
print"var1 1 is" , f
print"var 2 is" , ss
print"var 3 is" , t