Q.

What is the length of sys.argv?

A. number of arguments
B. number of arguments + 1
C. number of arguments – 1
D. none of the mentioned
Answer» B. number of arguments + 1
Explanation: the first argument is the name of the program itself. therefore the length of sys.argv is one more than the number arguments.
745
0
Do you find this helpful?
1

Discussion

JG

Jayshree Goswami
5 months ago

What is the maximum number of arguments that can be passed through sys.argv?
1