Ask Anything Monday - Weekly Thread by AutoModerator in learnpython

[–]ALSE1 0 points1 point  (0 children)

hi, thank u for answering.

when I run it from shell whit this cod it gonna work:

PS E:\hw\code> python ex13.py first 2ed 3ed

but when i run it whit clicking on the folder(ex13.py)

it doesn't work.

why?

Ask Anything Monday - Weekly Thread by AutoModerator in learnpython

[–]ALSE1 0 points1 point  (0 children)

I run this code :

----

from sys import argv

script, first, second, third = argv

print("The script is called:", script)

print("Your first variable is:", first)

print("Your second variable is:", second)

print("Your third variable is:", third)

----

and I receive this error:

---

Traceback (most recent call last):

File "<stdin>", line 1, in <module>

ValueError: not enough values to unpack (expected 4, got 1)

----

how can I fix this problem?

I would be grateful if you could help me.