uaveiro-leci/1ano/fp/extra3/ex06.py

2 lines
66 B
Python
Raw Normal View History

2023-01-19 14:16:27 +00:00
stocks2 = sorted(stocks, key=lambda stock: (stock[0], -stock[4]))