diff --git a/1ano/fp/extra3/ex06.py b/1ano/fp/extra3/ex06.py index c6a43d0..e1c233d 100644 --- a/1ano/fp/extra3/ex06.py +++ b/1ano/fp/extra3/ex06.py @@ -1,2 +1,2 @@ -# Complete... -stocks2 = sorted(sorted(stocks, key=lambda stock: stock[4], reverse=True), key=lambda stock: stock[0]) \ No newline at end of file + # Complete... + stocks2 = sorted(stocks, key=lambda stock: (stock[0], -stock[4]))