1#!/usr/bin/python
2
3import sys
4
5print 'Number of arguments:', len(sys.argv), 'arguments.'
6print 'Argument List:', str(sys.argv)
7
8#Terminal
9# $ python test.py arg1 arg2 arg3
10
11#print
12#Number of arguments: 4 arguments.
13#Argument List: ['test.py', 'arg1', 'arg2', 'arg3']
14
15