find the error
Chris Angelico
rosuav at gmail.com
Sat Sep 13 01:53:37 EDT 2014
On Sat, Sep 13, 2014 at 3:47 PM, <daoudimca at 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
More information about the Python-list
mailing list