Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Reverse sort a list in python alphabetically

guests = ['James', 'Mary', 'John', 'Patricia', 'Robert', 'Jennifer']
guests.sort(reverse=True)

print(guests)
Source by www.pythontutorial.net #
 
PREVIOUS NEXT
Tagged: #Reverse #sort #list #python #alphabetically
ADD COMMENT
Topic
Name
9+7 =