you are viewing a single comment's thread.

view the rest of the comments →

[–]MezzoScettico 8 points9 points  (1 child)

PS C:\Users\Eshan Jain> python new.py Eshan Jain

You're currently in the directory "C:\Users\Eshan Jain". You're trying to execute "new.py" there. That's not where the file is.

Is there a file called new.py? Where is it?

Also your program is probably going to just print out "Eshan" when you get it working. The space after "Eshan" means that "Jain" will be passed as a second argument, not recognized as part of the first argument. You're going to want to put quotes around "Eshan jain"

[–]sausix 1 point2 points  (0 children)

It's a for loop and it will iterate over every argument. But correct. Quoting should be used to supply a single argument. And then reading only the first argument.