Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #43050 > unrolled thread
| Started by | Adam Mesha <adam@mesha.org> |
|---|---|
| First post | 2013-04-08 12:25 +0300 |
| Last post | 2013-04-08 12:25 +0300 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.lang.python
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: help needed Adam Mesha <adam@mesha.org> - 2013-04-08 12:25 +0300
| From | Adam Mesha <adam@mesha.org> |
|---|---|
| Date | 2013-04-08 12:25 +0300 |
| Subject | Re: help needed |
| Message-ID | <mailman.276.1365413134.3114.python-list@python.org> |
[Multipart message — attachments visible in raw view] — view raw
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 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
Back to top | Article view | comp.lang.python
csiph-web