From aab2dc58c96f8c3d923c57dc6fed3da2d6c000e0 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]))