# File name : reversargs import sys args = sys.argv[1:] print args args.reverse() #print args.reverse() print ' '.join(args)