Hi everyone. I’ve been working on the finale practice lab of the second course of MLS but as I finished the exercice 4, an error message has occured saying “index 8 is out of bounds for axis 0 with size 3”.
Does anyone knows the reason behind this bug or any way I can fix it?
TY
https://docs.python.org/3/library/exceptions.html#IndexError
exception IndexError
Raised when a sequence subscript is out of range
Looks like you tried to access the 8^{th} element of an object that has only 4 (remember Python uses 0-based indexing). Either the size of the object is wrong (should have had more elements) or the index value is (should be at most 3). If it’s in a loop, check the range limit. HTH