If trying to import a command-line argument when none was entered ("something = sys.argv[1]"), the error produced will be:
NameError
SyntaxError
IndexError
If trying to import a command-line argument when "import sys" hasn't been entered, the error produced will be:
When running “python3 working.py 12.8”, sys.argv[1] is which of the following?
"12.8"
"working.py"
12.8
What will be the output of the following code: x = 3 y = x x = 5 print(y)
3
5
an Error of some sort
y
What will be the output of the following code: x = 3 y = x x = 5 print('y')
An Error of some sort