Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

sort list alphabetically python

my_list = ['pera', 'apple', 'orange', 'grape']
my_list.sort() # ['apple', 'grape', 'orange', 'pera']
 
PREVIOUS NEXT
Tagged: #sort #list #alphabetically #python
ADD COMMENT
Topic
Name
9+2 =