import sys

def main():
     
    print ('Number of arguments:', len(sys.argv), 'arguments.')
    print ('Argument List:', str(sys.argv))
    
if __name__ == "__main__":
    main()
#test by typing 'python cmlineargs.py arg1 arg2' on the command line 