##program to sort a tuple by its float element.
items = [('item1', '12.20'), ('item2', '15.10'), ('item3', '24.5')]
print(sorted(items, key = lambda x: float(x[1]), reverse = True))

a4ee9145c9ed7cdc75d686eeb9637b2ff75097a8
<mask token>

<mask token>
print(sorted(items, key=lambda x: float(x[1]), reverse=True))

items = [('item1', '12.20'), ('item2', '15.10'), ('item3', '24.5')]
print(sorted(items, key=lambda x: float(x[1]), reverse=True))

##program to sort a tuple by its float element.
items = [('item1', '12.20'), ('item2', '15.10'), ('item3', '24.5')]
print(sorted(items, key = lambda x: float(x[1]), reverse = True))
