thanks adam, but it is not clear to me yet. if i open the terminal how do i work on it? what should i type in?
thanks Il giorno 08/apr/2013, alle ore 11:25, Adam Mesha <a...@mesha.org> ha scritto: > 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 3rd > The script is called: ex13.py > Your first variable is: first > Your second variable is: 2nd > Your 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
-- http://mail.python.org/mailman/listinfo/python-list