Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python sort list in reverse

#1 Changes list
list.sort(reverse=True)
#2 Returns sorted list
sorted(list, reverse=True)
 
PREVIOUS NEXT
Tagged: #python #sort #list #reverse
ADD COMMENT
Topic
Name
6+9 =