On Mon, Apr 8, 2013 at 11:01 AM, leonardo selmi <l.se...@icloud.com> wrote:
> then i get this error: > > Traceback (most recent call last): > File "/Users/leonardo/Documents/ex13.py", line 3, in <module> > script, first, second, third = argv > ValueError: need more than 1 value to unpack > You didn't provide any arguments to the script. > in the book the author says that i should run the program like this: > > $ python ex13.py first 2nd 3rdThe script is called: ex13.pyYour first > variable is: firstYour second variable is: 2ndYour third variable is: 3rd > > but how can i do that?? what are the steps? where should i go? > You need to open a command line terminal and type the first line (without the dollar sign). You will need to change your directory to the directory that contains your exercise script, probably by doing "cd /path/to/exercise/directory". If you're on Windows it's the same idea, you run the "cmd" program, but you would have to specify the full path to the python interpreter instead of just "python", or follow the directions that have been offered for fixing Windows. Adam www.mesha.org
-- http://mail.python.org/mailman/listinfo/python-list