What does sys.argv contain in Python?
Correct answer
B. Command-line arguments passed to the script
5 views
B. Command-line arguments passed to the script
5 views
sys.argv[0] is the script name, followed by its arguments.
Asked in: Python Interview Advanced Python
https://docs.python.org/3/library/index.htmlNot sure why the answer is B? Ask here and get an explanation.