I am trying to learn how to code in Python, whenever I do a exercise involving from sys import argv
I get this error code:
Traceback (most recent call last): File "C:/Users/Kaleb/PycharmProjects/python ex13.py", line 3, in script, first, second, third = argv ValueError: need more than 1 value to unpack
This is the code im trying to do:
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
I am not sure why it is doing this and im very new to coding. I had had a look around but I cannot find anything helpful or that I can understand.
What does this error mean and what do I need to do to fix it?