Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python tri alphabetique

my_list = ['Jack', 'Sam', 'Jay', 'Mark','Baron']
my_list.sort()

print(my_list)
# ['Baron', 'Jack', 'Jay', 'Mark', 'Sam']
Source by www.delftstack.com #
 
PREVIOUS NEXT
Tagged: #python #tri #alphabetique
ADD COMMENT
Topic
Name
8+4 =