Stuck in list negetive indices

#Your code below:

class_name_test = [[“Jenny”, 90],[“Alexus”, 85.5],[“Sam”, 83],[“Ellie”, 101.5]]


sams_score = class_name_test[2][1]


ellies_score = class_name_test[-1][1]

I am using negative indices still it is showing use negative indices, stuck here please resolve it fast

What language are you writing this in?

it’s done… I got it… Thank you so much
btw it is python language and the indices are [-1][-1]