This is my list.
[('a', 12), ('c', 4), ('b', 3), ('e', 6), ('d', 5), ('g', 50), ('f', 30),]
The result for sorting this list would be.
[('g', 50), ('f', 30), ('a', 12), ('e', 6), ('d', 5), ('c', 4), ('b', 3)]
I tried using:
x = sorted(alpha_items, key=lambda x: x[1],)
But I need to reverse it.
Can i add another key maybe?