0

How do I use sort func in python but in reversed order

Begginer lv 5

5th May 2021, 1:27 PM
Asher
Asher - avatar
3 Respostas
+ 1
list.sort(reverse=True)
5th May 2021, 1:33 PM
Abhishek Tandon
Abhishek Tandon - avatar
0
arr = [1,2,4,3] arr.sort(reverse=True) print(arr)
5th May 2021, 1:38 PM
Alpha Diallo
Alpha Diallo - avatar
0
Thank ya
5th May 2021, 1:40 PM
Asher
Asher - avatar