FP: Extra3: Ex06 update

This commit is contained in:
TiagoRG 2023-01-19 14:15:29 +00:00
parent c24adbf435
commit efba10b530
1 changed files with 2 additions and 2 deletions

View File

@ -1,2 +1,2 @@
# Complete...
stocks2 = sorted(sorted(stocks, key=lambda stock: stock[4], reverse=True), key=lambda stock: stock[0])
# Complete...
stocks2 = sorted(stocks, key=lambda stock: (stock[0], -stock[4]))