Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. Python
  3. Question
Python

Python Error: “ValueError: need more than 1 value to unpack”

Asked by Cameron Oliver Apr 18, 2021 1.1K views 1 answer
Share

About this question

 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 value error need more than 1 value to unpack:

Traceback (most recent call last): 

script, user_name =argv 

ValueError: need more than 1 value to unpack

What does that error mean?

Your answer

1 Answer

More Python discussions

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.

Latest Python Blogs

Guides, tips and career advice on Python from JanBask experts.