<Apti
Code
/>
Back
Question 424: What is the correct way to sort a list in descending order in Python?
tcs
wipro
infosys
general
aptitude
lists
python-programming
Thelist.sort(reverse=True)method is used to sort a list in descending order in-place.
list.sort()
sorted(list, reverse=True)
list.sort(reverse=True)
sorted(list)
Submit Answer
Show Answer
Previous
Next