Which one of these modules should you import in order to access variables that were passed to a script as a command-line arguments?
sys module has an argv list that holds all command-line arguments passed to a script

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback
Keep exploring
Python quizzes
Sign Up Now
or Subscribe for future quizzes