How can I find the positive index of myList[-1]
?
This is an example of what I want:
Input:
myList = [1, 2, 3, 4, 3]
# Please keep in mind that the list can have multiple values that are the same
myIndex = # Find out the positive index of myList[-1] and store in myIndex variable
print(myIndex)
Desired Output:
4