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
This is the code from "Learn Python the Hard Way", but it doesn't run and I don't know why.
The resulting error is as follows:
Traceback (most recent call last):
File "E:/python/untitled1/new.py", line 6, in <module>
script, first, second, third, = argv
ValueError: need more than 1 value to unpack