How to iterate through a list of tuples containing three pair values?,"[(1, 'B', 'A'), (2, 'C', 'B'), (3, 'C', 'A')]"