FP: Extra3: Ex06 update
This commit is contained in:
parent
b5ac6aa74d
commit
5a894e88ee
|
@ -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