Mega Code Archive

 
Categories / Python Tutorial / Buildin Module
 

Printing the command line arguments in reverse order

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