Hi Jason,
On 19 January 2012 13:02, Jason Loeve wrote:
> good day i seem to be stuck, my code is
>
> from sys import argv
>
> script, user_name = argv
>
> and i get an error ValueError: need more than 1 value to unpack
>
The implication of this message is that the value of "argv" contains only
If I say that sys.argv is a list, does that help you?
Also, run things from a command prompt for this kind of thing, at least then
you can guarantee what args get passed
Bodsda
Sent from my BlackBerry® wireless device
-Original Message-
From: Jason Loeve
Sender: tutor-bounces+bodsda
On Thu, Jan 19, 2012 at 6:32 PM, Jason Loeve wrote:
> good day i seem to be stuck, my code is
>
> from sys import argv
>
> script, user_name = argv
>
Are you passing an additional parameter while executing the script ?? you
must execute it passing an additional parameter which will get assigned