Problem with a for loop and a list
Alexnb
alexnbryan at gmail.com
Wed Jul 2 04:21:58 EDT 2008
well okay, so what can I do?
A.T.Hofkamp-3 wrote:
>
> On 2008-07-02, Alexnb <alexnbryan at gmail.com> wrote:
>> I have no idea what "list assignment index out of range means?!?!
>
> You are assigning a value to a non-existing list element, as in
>
>>>> x = [1]
>>>> x[2] = 4
> Traceback (most recent call last):
> File "<stdin>", line 1, in ?
> IndexError: list assignment index out of range
>
>
> Albert
> --
> http://mail.python.org/mailman/listinfo/python-list
>
>
--
View this message in context: http://www.nabble.com/Problem-with-a-for-loop-and-a-list-tp18232298p18232528.html
Sent from the Python - python-list mailing list archive at Nabble.com.
More information about the Python-list
mailing list