Как получить первое значение списка из двух последних значений.
Например, у меня есть список:
list1 = ['a','b','c','d','y','z']
# I know that going from 'a' to 'y' is using negatives,
n = 0 - 2
list1[n]
# This will give the value of 'y'
# but how do I do the opposite? 'y' to 'a' ?
# not fetching the values from 'y' to 'a', instead, traversing from 'y' to 'a'