Python, Numbers, Sorting.
in Python can be used to sort a list of numbers in ascending order. numbers = [5, 2, 8, 1, 9] sorted_numbers = sorted(numbers) print(sorted_numbers) # Output: [1, 2, 5, 8, 9] Sorting numbers in descending order To sort the numbers in descending order, you can use the reverse parameter of the sorted