Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #43048
| Path | csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <l.selmi@icloud.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.001 |
| X-Spam-Evidence | '*H*': 1.00; '*S*': 0.00; 'error:': 0.07; 'sys': 0.07; 'subject:help': 0.08; '34,': 0.09; 'typed': 0.09; 'valueerror:': 0.09; 'sfxlen:2': 0.11; 'python': 0.11; '"your': 0.16; '0%;': 0.16; '10px;': 0.16; '14px;': 0.16; '238,': 0.16; 'script,': 0.16; 'scroll;': 0.16; 'unpack': 0.16; 'variable': 0.18; 'all,': 0.19; 'import': 0.22; 'to:name:python- list@python.org': 0.22; 'cc:addr:python.org': 0.22; 'print': 0.22; 'cc:2**0': 0.24; 'script': 0.25; 'first,': 0.26; 'skip:" 30': 0.26; 'this:': 0.26; 'second': 0.26; 'padding:': 0.31; 'second,': 0.31; 'file': 0.32; 'thanks!': 0.32; 'run': 0.32; 'says': 0.33; '(most': 0.33; 'third': 0.33; '"the': 0.34; 'but': 0.35; 'charset :us-ascii': 0.36; 'should': 0.36; 'skip:& 10': 0.38; 'received:17': 0.38; 'subject:needed': 0.38; 'to:addr:python- list': 0.38; 'recent': 0.39; 'to:addr:python.org': 0.39; 'how': 0.40; '2nd': 0.60; 'first': 0.61; 'more': 0.64; 'repeat': 0.74; '"learn': 0.84 |
| X-Proofpoint-Virus-Version | vendor=fsecure engine=2.50.10432:5.10.8626,1.0.431,0.0.0000 definitions=2013-04-07_07:2013-04-05, 2013-04-07, 1970-01-01 signatures=0 |
| X-Proofpoint-Spam-Details | rule=notspam policy=default score=0 spamscore=0 ipscore=0 suspectscore=4 phishscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=6.0.2-1302030000 definitions=main-1304080013 |
| From | leonardo selmi <l.selmi@icloud.com> |
| Content-type | multipart/alternative; boundary="Apple-Mail=_C27F4831-6A68-4DE5-B410-0FED846C3C23" |
| Subject | help needed |
| Date | Mon, 08 Apr 2013 10:01:57 +0200 |
| To | "python-list@python.org" <python-list@python.org> |
| MIME-version | 1.0 (Mac OS X Mail 6.2 \(1499\)) |
| X-Mailer | Apple Mail (2.1499) |
| Cc | "help@python.org" <help@python.org> |
| 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.274.1365411757.3114.python-list@python.org> (permalink) |
| Lines | 144 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1365411757 news.xs4all.nl 6976 [2001:888:2000:d::a6]:48899 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:43048 |
Show key headers only | View raw
[Multipart message — attachments visible in raw view] - view raw
hello all,
i have typed the following program from the book "learn python the hard way":
from sys import argv
script, first, second, third = argv
print "The script is called:", script
print "Your first variable is:", first
print "Your second variable is:", second
print "Your third variable is:", third
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
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?
thanks!
best regards
leonardo
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
help needed leonardo selmi <l.selmi@icloud.com> - 2013-04-08 10:01 +0200
csiph-web