I\'ve tried to look at other examples and they only turn something like [a, b, c, d, c, b, a] into [d] using python. How would I do that?