In Python, when I run this code:
from sys import argv
script, user_name =argv
prompt = '>'
print "Hi %s, I'm the %s script." % (user_name, script)
I get this error:
Traceback (most recent call last):
script, user_name =argv
ValueError: need more than 1 value to unpack
What does that error mean?
See Question&Answers more detail:os