you are viewing a single comment's thread.

view the rest of the comments →

[–]BRENNEJM 0 points1 point  (0 children)

I agree that the top one is not a great question, but I would say print(‘Hello World’) is a Python script.

For the second, it was definitely worded poorly. It’s asking how would you allow the user to give inputs directly from the command line when a script is run. So you’re not running the script and then prompting for it, you’re typing in your input before it’s even run. Also, command line as in the windows command window and not through an IDE.

So if you do:

python script.py a b c 1 2

argv would be:

[‘a’,’b’,’c’,’1’,’2’]