Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #77830
| References | <70d7bef7-6393-41e1-b4e0-a5d3a6630063@googlegroups.com> |
|---|---|
| Date | 2014-09-13 15:53 +1000 |
| Subject | Re: find the error |
| From | Chris Angelico <rosuav@gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.13989.1410587619.18130.python-list@python.org> (permalink) |
On Sat, Sep 13, 2014 at 3:47 PM, <daoudimca@gmail.com> wrote: > Dear friends when i used > import urllib, re, sys > > symbol = sys.argv[1] >>> this function is show -->> symbol = sys.argv[1] > IndexError: list index out of range > > kindly find the solution of this If you're using sys.argv, you need to provide arguments to your script. You provided no arguments, so the list doesn't have elements for you to find. ChrisA
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
find the error daoudimca@gmail.com - 2014-09-12 22:47 -0700
Re: find the error Chris Angelico <rosuav@gmail.com> - 2014-09-13 15:53 +1000
Re: find the error Andrea D'Amore <anddamNOALPASTICCIODICARNE+gruppi@brapi.net> - 2014-09-13 08:43 +0200
Re: find the error Denis McMahon <denismfmcmahon@gmail.com> - 2014-09-13 17:28 +0000
Re:find the error Dave Angel <davea@davea.name> - 2014-09-13 19:26 -0400
csiph-web