<prompt> Ngola khoutu ho fumana boholo ba boleng ho sehlopha2, 4, 5, 7, 1  <response>: Instruction in English: Write code to find the maximum value in an array . Response in English: Here is an example code written in Python to find the maximum value in an array:pythondef find_maxarr: max_val arr0 for i in range1, lenarr: if arri max_val: max_val arri return max_valinput_array 2, 4, 5, 7, 1max_value find_maxinput_arrayprintThe maximum value in the array is:, max_valueIn this code, we define a function find_max that takes an array as an input argument. Inside the function, we initialize a variable max_val with the first element of the array. Then, we iterate over the array using a for loop, and compare each element with max_val. If the current element is greater than max_val, we update the value of max_val. Finally, when the loop finishes, we return the value of max_val as the maximum value in the array. . Response in Sesotho: Mona ke mohlala oa khoutu e ngotsoeng ho Python ho fumana boleng bo phahameng ka ho fetisisa sehlopheng: python def find_maxarr: max_val arr0 bakeng sa i in range1, lenar: if arri max_val: max_val arri kgutlisetsa max_val input_array 2, 4, 5, 7, 1 max_value find_maxinput_array printBoleng bo ka holimo ho lenane ke:, boholo_boleng Ho khoutu ena, re hlalosa tšebetso find_max e nkang palo e le khang ea ho kenya. Ka hara tšebetso, re qala max_val e fapaneng ka karolo ea pele ea sehlopha. Ebe, re pheta-pheta sehlopha ka ho sebelisa for loop, ebe re bapisa element ka ngoe le max_val. Haeba elemente ea hajoale e le kholo ho feta max_val, re ntlafatsa boleng ba max_val. Qetellong, ha lupu e fela, re khutlisa boleng ba max_val e le boholo ba boleng bo hlophisitsoeng. 