"Noah" <noah at noah.org> writes: > I know I could do this long-form: > q = [] > y = [('a', 1.0), ('b', 2.0), ('c', 3.0)] > ... y = [tuple(reversed(t)) for t in y]