Ask your own question, for FREE!
MIT 6.00 Intro Computer Science (OCW) 7 Online
OpenStudy (anonymous):

Hey all, I'm working through Learn Python, The Hard Way, on the side of MIT 6.00 as I'm finding it really helpful but one of the problems I've run into is that I'm not sure what argv is but its apparently empty. I keep getting this error message whenever I "from sys import argv": Traceback (most recent call last): File "ex14.py", line 3, in script, user_name = argv ValueError: need more than 1 value to unpack Whats up?

OpenStudy (anonymous):

nevermind, got it!

OpenStudy (anonymous):

I think you should pass two values to argv by command line or some other places. such as python ex14.py MichelleH, if failed, please try python ex14.py ex14.py MichelleH

OpenStudy (anonymous):

Thanks! I realized that my entire problem was that I didn't read the entire exercise thoroughly, what an important lesson that was... I'm racing on through to altering files now!

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!