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

3 lines
86 B
Python

# Complete...
stocks2 = sorted(stocks, key=lambda stock: (stock[0], -stock[4]))