Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python sort list

prime_numbers = [11, 3, 7, 5, 2]

# sort the list
prime_numbers.sort()
print(prime_numbers)

# Output: [2, 3, 5, 7, 11]
Source by www.programiz.com #
 
PREVIOUS NEXT
Tagged: #python #sort #list
ADD COMMENT
Topic
Name
1+5 =