Jun-05-2020, 02:59 PM
(Jun-05-2020, 10:37 AM)pyzyx3qwerty Wrote: List index out of range error occurs in Python when we try to access an undefined element from the list. The only way to avoid this error is to mention the indexes of list elements properly. ... And we know that the index of a list starts from 0 that's why in the list, the last index is 2, not 3
Hey, I think I am properly indexing, but I'm not sure why the code is giving me this error: there is only one value in the list 'limits', and so limits[0] should give me that. Surely?