• LOGIN
  • No products in the cart.

DevOps on AWS – Python Scripts 3 : Command Line Args

CommandLineArg.py

import sys
print ‘Count : ‘, len(sys.argv) – 1
count = 0;
for arg in sys.argv:
   print ‘Argument ‘, count, ” : “, arg
   count += 1

Execute:
python CommandLineArg.py Hello Rns
February 22, 2021

0 responses on "DevOps on AWS - Python Scripts 3 : Command Line Args"

    All rights reserved.
    error: Alert: Content is protected !!
    X