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


Groups > comp.lang.python > #43060

Re: help needed

Path csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!ecngs!feeder2.ecngs.de!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <tampucciolina@libero.it>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.009
X-Spam-Evidence '*H*': 0.98; '*S*': 0.00; 'exercise': 0.04; 'yet.': 0.04; 'interpreter': 0.05; 'error:': 0.07; 'subject:help': 0.08; 'arguments': 0.09; 'directions': 0.09; 'valueerror:': 0.09; '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; 'to:name:python- list@python.org': 0.22; '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; 'url:mailman': 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; 'url:python': 0.33; '(most': 0.33; 'third': 0.33; 'offered': 0.35; 'but': 0.35; 'alle': 0.36; 'url:listinfo': 0.36; 'doing': 0.36; "didn't": 0.36; 'charset:us- ascii': 0.36; 'thanks': 0.36; 'url:org': 0.36; 'should': 0.36; 'received:it': 0.37; 'clear': 0.37; 'skip:& 10': 0.38; 'subject:needed': 0.38; 'to:addr:python-list': 0.38; 'recent': 0.39; 'to:addr:python.org': 0.39; 'url:mail': 0.40; 'how': 0.40; '2nd': 0.60; 'full': 0.61; "you're": 0.61; 'first': 0.61; 'header :Message-Id:1': 0.63; 'provide': 0.64; 'more': 0.64; 'dollar': 0.74; 'received:212.52.84': 0.84; 'received:libero.it': 0.84; 'ore': 0.91; 'received:212.52': 0.91; '2013': 0.98
X-CTCH-Spam Unknown
X-CTCH-RefID str=0001.0A0C0208.5162A8EC.0038,ss=1,re=0.000,fgs=0
X-libjamoibt 1823
From leonardo <tampucciolina@libero.it>
Content-Type multipart/alternative; boundary="Apple-Mail=_FBF887EF-F575-4B17-A5C9-2012A13330CA"
Mime-Version 1.0 (Mac OS X Mail 6.2 \(1499\))
Subject Re: help needed
Date Mon, 8 Apr 2013 13:24:26 +0200
References <6E5142FB-D0CB-4C7C-B80E-FF0C47E09B82@icloud.com> <CAKR3C4Yt+KpgRG-x25brZqfAfXiJo64fQoDJzds4xHGe9=MmKA@mail.gmail.com>
To "python-list@python.org" <python-list@python.org>
In-Reply-To <CAKR3C4Yt+KpgRG-x25brZqfAfXiJo64fQoDJzds4xHGe9=MmKA@mail.gmail.com>
X-Mailer Apple Mail (2.1499)
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
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.282.1365420269.3114.python-list@python.org> (permalink)
Lines 68
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1365420269 news.xs4all.nl 6845 [2001:888:2000:d::a6]:50867
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:43060

Show key headers only | 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