argv
What on Earth is it!?
Edit: If you can, will you please write a line or two and explain how it works?
You can run python program with or without arguments. If you use arguments they are inside argv vector. For example
PYTHON PROGRAM!!!
#!/usr/bin/python
import sys
print 'Number of arguments:', len(sys.argv), 'arguments.'
print 'Argument List:', str(sys.argv)
RUN SCRIPT LIKE THIS
$ python test.py arg1 arg2 arg3
AND RESULT IS
Number of arguments: 4 arguments.
Argument List: ['test.py', 'arg1', 'arg2', 'arg3']
examples are from tutorialspoint