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:A
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
Explanation: The first argument is the name of the program itself. Therefore the length of sys.argv is one more than the number arguments.