Write logic to sort the List in ascending order based on their values

2. Take an integer List of 10 numbers. in python Write logic to sort the List in ascending order based on their values. Note: you should not use any predefined function or mechanism which automatically sorts the elements. You have to write your own logic. Solution : numbelist = [1, 5, 6, 4, 7, 2, 3, 9, 10, 8] sorting_number = sorted(numbelist) print(sorting_number)

Please Select Embedded Mode To Show The Comment System.*

Previous Post Next Post