Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #43060

Re: help needed

From leonardo <tampucciolina@libero.it>
Subject Re: help needed
Date 2013-04-08 13:24 +0200
References <6E5142FB-D0CB-4C7C-B80E-FF0C47E09B82@icloud.com> <CAKR3C4Yt+KpgRG-x25brZqfAfXiJo64fQoDJzds4xHGe9=MmKA@mail.gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.282.1365420269.3114.python-list@python.org> (permalink)

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

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 <adam@mesha.org> ha scritto:

> On Mon, Apr 8, 2013 at 11:01 AM, leonardo selmi <l.selmi@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

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: help needed leonardo <tampucciolina@libero.it> - 2013-04-08 13:24 +0200

csiph-web