I have limited knowledge of python, so this is probably a bad question, but I am trying to go through a list and replace each item in the list with another item based on what the original item is.
For example I have a list ['A', 'B', 'C', 'B']
, and I want to go through and replace each item with a corresponding item so it ends up as ['D', 'E', 'F', 'E']
Thanks!