Applied Data Science with Python - Assignment 2.3: clicking on chart to select Y values

MRAB python at mrabarnett.plus.com
Sat Jun 6 11:40:44 EDT 2020


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 <caledonian209 at 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?


More information about the Python-list mailing list