Answers for "how to give arguments in the command line python2.7"

8

python read arguments

#!/usr/bin/python

import sys

print('Number of arguments:', len(sys.argv), 'arguments.')
print('Argument List:', str(sys.argv))
Posted by: Guest on March-01-2020

Code answers related to "how to give arguments in the command line python2.7"

Python Answers by Framework

Browse Popular Code Answers by Language