Stuck in list negetive indices

#Your code below:

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

#print(class_name_test)

sams_score = class_name_test[2][1]

#print(sams_score)

ellies_score = class_name_test[-1][1]

print(ellies_score)
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]