Valueerror: Too Many Values To Unpack Aptana Studio 3
I am working on exercise 13 from learnpythonthehardway.org. I should run this code: from sys import argv script, first, second, third = argv print 'The script is called:', script
Solution 1:
It's because len(argv)
might be greater than 4:
>>> w,x,y,z=[1,2,3,4,5]
Traceback (most recent calllast):
File "<stdin>", line 1, in<module>
ValueError: too many valuesto unpack
Try printing argv
to see what argv
actually contains.
Post a Comment for "Valueerror: Too Many Values To Unpack Aptana Studio 3"