Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #43050
| Path | csiph.com!usenet.pasdenom.info!news.etla.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <mesha@mesha.org> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.004 |
| X-Spam-Evidence | '*H*': 0.99; '*S*': 0.00; 'exercise': 0.04; 'interpreter': 0.05; 'error:': 0.07; 'subject:help': 0.08; 'arguments': 0.09; 'directions': 0.09; 'valueerror:': 0.09; 'cc:addr:python-list': 0.11; 'python': 0.11; 'windows': 0.15; '"python",': 0.16; '(without': 0.16; 'adam': 0.16; 'script,': 0.16; 'unpack': 0.16; 'wrote:': 0.18; 'variable': 0.18; 'command': 0.22; 'cc:addr:python.org': 0.22; 'cc:2**1': 0.23; 'script.': 0.24; 'specify': 0.24; 'mon,': 0.24; 'script': 0.25; 'first,': 0.26; 'skip:" 30': 0.26; 'this:': 0.26; 'second': 0.26; 'header :In-Reply-To:1': 0.27; 'am,': 0.29; 'received:209.85.217': 0.29; 'message-id:@mail.gmail.com': 0.30; 'program,': 0.31; 'fixing': 0.31; 'idea,': 0.31; 'second,': 0.31; 'file': 0.32; 'probably': 0.32; 'run': 0.32; 'open': 0.33; 'says': 0.33; '(most': 0.33; 'third': 0.33; 'received:209.85': 0.35; 'offered': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'doing': 0.36; "didn't": 0.36; 'url:org': 0.36; 'should': 0.36; 'received:209': 0.37; 'skip:& 10': 0.38; 'subject:needed': 0.38; 'recent': 0.39; 'how': 0.40; '2nd': 0.60; 'full': 0.61; "you're": 0.61; 'first': 0.61; 'provide': 0.64; 'more': 0.64; 'header:Reply-To:1': 0.67; 'reply- to:no real name:2**0': 0.71; 'dollar': 0.74; 'skip:/ 30': 0.84; '2013': 0.98 |
| X-Google-DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-received:reply-to:sender:x-originating-ip :in-reply-to:references:date:x-google-sender-auth:message-id:subject :from:to:cc:content-type:x-gm-message-state; bh=ikNQ8mqnU3NbjkF1nlRi6OIdq9JQCm0UuKD+IhhxaiQ=; b=C5En3hae0snKnPhH7SYbtBAPFOB4bFtFz/T5s+an6h4eTOuOkJyxSjMNAp4tgKShTM 7klC7lyc/ifxRCMRho/ZmVRLYugBZClJBXasEABVkuxein4s8NvK8Um3oAW0y6sherjq o5IzWg4DaPuwV+iidjr6pTFRv5wk23QNGh5fFhBpOcomONwH9LK38qyexdTMi3ynJM3D /xpDePxB6ejKlCQFgC0AytKBJAHRhr5P6/M/Sh1Tx0u4Xo4seZp+jrJX3fjV9sEy79Ya bfzbigJ+gKQcVwtpj0QAM0l9aIg4Gb10vXh448uK15rnlX4JYeEdg6DCfqeLin5RlpzI LONg== |
| MIME-Version | 1.0 |
| X-Received | by 10.152.87.73 with SMTP id v9mr11409206laz.2.1365413133136; Mon, 08 Apr 2013 02:25:33 -0700 (PDT) |
| Sender | mesha@mesha.org |
| X-Originating-IP | [85.250.172.173] |
| In-Reply-To | <6E5142FB-D0CB-4C7C-B80E-FF0C47E09B82@icloud.com> |
| References | <6E5142FB-D0CB-4C7C-B80E-FF0C47E09B82@icloud.com> |
| Date | Mon, 8 Apr 2013 12:25:33 +0300 |
| X-Google-Sender-Auth | PSs0T34AalboqYx6Qxd8dDX68Hg |
| Subject | Re: help needed |
| From | Adam Mesha <adam@mesha.org> |
| To | leonardo selmi <l.selmi@icloud.com> |
| Content-Type | multipart/alternative; boundary=001a11c34d9ac5c85904d9d604b7 |
| X-Gm-Message-State | ALoCoQlSYfTkjE1MA+oG7o86cfW+4pIF7W+lhkhuDAYKCPHnlC9yJcML5HWCrvO/a4n0ikZX6VIi |
| Cc | "python-list@python.org" <python-list@python.org>, "help@python.org" <help@python.org> |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| Precedence | list |
| Reply-To | adam@mesha.org |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.276.1365413134.3114.python-list@python.org> (permalink) |
| Lines | 85 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1365413134 news.xs4all.nl 6955 [2001:888:2000:d::a6]:58614 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:43050 |
Show key headers only | View raw
[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 comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: help needed Adam Mesha <adam@mesha.org> - 2013-04-08 12:25 +0300
csiph-web