Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Python Sort List

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

# sorting the list in ascending order
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+4 =