find the error

Chris Angelico rosuav at
Sat Sep 13 07:53:37 CEST 2014

On Sat, Sep 13, 2014 at 3:47 PM,  <daoudimca at> 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.


More information about the Python-list mailing list