<prompt> 3,7,2,4,9Kujenga algorithm kupanga seti ya idadi kutoka chini ya juu  <response>: One common algorithm to arrange a set of numbers from lowest to highest is called the Bubble Sort algorithm. It works by comparing adjacent numbers in the list and swapping them if they are in the wrong order. This process is repeated until the entire list is sorted. Here is an example of how the Bubble Sort algorithm could be implemented:pythondef bubble_sortnumbers: n lennumbers We need to do n-1 passes for i in rangen - 1: Last i elements are already in place so we dont need to check them for j in range0, n - i - 1: Swap if the element found is greater than the next element if numbersj numbersj 1: numbersj, numbersj 1 numbersj 1, numbersj return numbersmy_list 3, 7, 2, 4, 9printUnsorted list:, my_listbubble_sortmy_listprintSorted list:, my_list Output:Unsorted list: 3, 7, 2, 4, 9Sorted list: 2, 3, 4, 7, 9 