Note; This is a self Q&A. Please see my answer below.
Given a list of tuples:
l = [(1, 'a'), (2, 'b'), (3, 'c'), (4, 'd'), (5, 'e')]
I'd like to find the quickest and simplest way to reverse each individual tuple in x
, so that I get:
[('a', 1), ('b', 2), ('c', 3), ('d', 4), ('e', 5)]