I'm trying to explain to my friend, how sys.argv works. And I ran this snippet from command line (tested on cmd and bash).
python -c "import sys; print(sys.argv)" bla stas
But to my surprise this is the output:
['-c', 'bla', 'stas']
And I'm stumped - why the expression in quotes "import sys; print(sys.argv)" is not part of the argument list? Shouldn't it be at the second place like this:
['-c', '"import sys; print(sys.argv)"', 'bla', 'stas']
?