FP: Extra3: Ex06 update
This commit is contained in:
parent
c24adbf435
commit
efba10b530
|
@ -1,2 +1,2 @@
|
||||||
# Complete...
|
# 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]))
|
||||||
|
|
Loading…
Reference in New Issue