Printing the command line arguments in reverse order : Command line : Buildin Module PYTHON TUTORIALS


PYTHON TUTORIALS » Buildin Module » Command line »

 

Printing the command line arguments in reverse order


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



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON TUTORIALS

 Navioo Buildin Module
» Command line