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