FP: Extra3: Ex06 update

This commit is contained in:
TiagoRG 2023-01-19 14:15:29 +00:00
parent b5ac6aa74d
commit 5a894e88ee
Signed by untrusted user who does not match committer: TiagoRG
GPG Key ID: DFCD48E3F420DB42
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])
stocks2 = sorted(stocks, key=lambda stock: (stock[0], -stock[4]))