<prompt> Kujenga programu algorithm kwa ajili ya kutafuta kubwa na ndogo idadi kutoka orodha ya idadi.4,7,2,9,6,1,8  <response>: Algorithm for finding the maximum and minimum numbers in a list Initial steps: Initialize two variables, max and min, to store the maximum and minimum values Set the value of max and min to the first element of the list Step 1: Loop through the list for each number in the list: compare the current number with the value of max and min if the current number is greater than the value of max set the value of max to the current number otherwise, if the current number is less than the value of min set the value of min to the current number end of loop Step 2: print the values of max and min Python implementationdef find_min_maxnumbers: max_value numbers0 min_value numbers0 for number in numbers: if number max_value: max_value number elif number min_value: min_value number printfMaximum number: max_value printfMinimum number: min_value Examplefind_min_max4,7,2,9,6,1,8 Maximum number: 9 Minimum number: 1 