Question #783

What is the output of the code snippet below?
import sys
print(sys.argv)

The output of the code shown above is a blank space inserted in single quotes enclosed by square brackets. In Python sys.argv in a list which contains the command-line arguments passed to the command. As in this case, no arguments are passed, the list is empty. (tutorialsteacher.com/python/sys-module)


Comment on Disqus:

Comment on Twitter:

Question difficulty: 🔵🔵🔵🔵🔵