The quiz where the difficulty automagically adapts to the player's Python knowledge
This is a question page. You can use this page to bookmark a question. Start a new quiz!
Question #783
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)
What is the output of the code snippet below?
— The Python Quiz (@thepythonquiz) January 19, 2021
import sys
print(sys.argv)
0
''
[ ]
['']
None of the above
π Comment the answer, like and retweet! #python
Question difficulty: π΅π΅π΅π΅π΅