From 55869ba669df3999d4fd8141d2eaba509ac165c2 Mon Sep 17 00:00:00 2001 From: TiagoRG <35657250+TiagoRG@users.noreply.github.com> Date: Thu, 19 Jan 2023 14:16:27 +0000 Subject: [PATCH] FP: Extra3: Ex06 update --- 1ano/fp/extra3/ex06.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/1ano/fp/extra3/ex06.py b/1ano/fp/extra3/ex06.py index e1c233d..401bca1 100644 --- a/1ano/fp/extra3/ex06.py +++ b/1ano/fp/extra3/ex06.py @@ -1,2 +1 @@ - # Complete... - stocks2 = sorted(stocks, key=lambda stock: (stock[0], -stock[4])) +stocks2 = sorted(stocks, key=lambda stock: (stock[0], -stock[4]))