I have a list in Python
lst=['a', 'b', 'c', 'd', 'e', 'f']
What is the best way to access the next element in the list for a given value.
For instance I would like to get:
next_element(lst, 'c')
# 'd' should return adjacent value of 'c'
What is the Pythonian way of doing it?