Python trié vs tri
numbers = [2,3,5,10,1]
# sorted(numbers): creates a new list, without modifying the numbers list
# numbers.sort(): modifies the numbers list
sorted_numbers = sorted(numbers)
#--> numbers: [2,3,5,10,1]
#--> sorted_numbers: [1,2,3,5,10]
numbers.sort()
#--> numbers: [1,2,3,5,10]
Dark Dotterel