Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

pythonn sort example

gList = [ "Rocket League", "Valorant", "Grand Theft Autu 5"]
gList.sort()
# OUTPUT --> ['Grand Theft Auto 5', 'Rocket League', 'Valorant']
# It sorts the list according to their names
Source by wikidocs.net #
 
PREVIOUS NEXT
Tagged: #pythonn #sort
ADD COMMENT
Topic
Name
7+4 =