by_price(products) that sorts a list of (name, price) tuples from cheapest to costliest without modifying the original list, using sorted with a lambda key.by_price([('chair', 5499), ('pen', 10)])[('pen', 10), ('chair', 5499)]Sorted ascending by the second tuple field.
sorted returns a new list.
key=lambda p: p[1].