On 2020-06-06 10:34, Caledonian26 wrote:
On Saturday, June 6, 2020 at 10:29:46 AM UTC+1, Chris Angelico wrote:
On Sat, Jun 6, 2020 at 7:26 PM Caledonian26 <caledonian...@gmail.com> wrote:
> *However,* I keep getting the error: IndexError: list index out of range. 
Could anyone give me a helping hand as to where I am going wrong? Am I on the 
right lines?
>

Python always gives you a wealth of information with an exception.
Most notably, you get a traceback, which tells you where the error
happened, where that was called from, where THAT was called from, etc,
all the way to the start of the program. In order to track down this
error, you'll need the traceback. I would recommend copying and
pasting it in its entirety; even if you don't (yet) understand how to
interpret it, we can help you with that.

All the best!

ChrisA

Hey,

Here is the full error message:

Traceback (most recent call last):
   File "<input>", line 45, in <module>
IndexError: list index out of range

Which is line 45?

Are you entering the code at the Python prompt?
--
https://mail.python.org/mailman/listinfo/python-list

Reply via email to