I am on python 3.7.1.
I am working with data structures, and when using lists, I ran into a bug. When I try to access index -1, python gives me the last entry in the list.
I opened python shell, and ran the following commands:
>>> l = [0,1,2]
>>> l[-1]
2
>>> l[3]
Traceback (most recent call last):
File "<pyshell#5>", line 1, in <module>
l[3]
IndexError: list index out of range
This is probably due to a bug on python 3.7.1, but is there a way other than updating python that fixes this? I'm in the middle of a project.