<prompt> Ngola tšebetso ho kenya tšebetsong mofuta oa khetho.nan  <response>: Instruction in English: Write a function to implement selection sort. . Response in English: Selection sort is a simple comparison-based sorting algorithm. Heres an implementation of the selection sort algorithm in Python:pythondef selection_sortarr: for i in rangelenarr: Find the minimum element in unsorted part of array min_idx i for j in rangei 1, lenarr: if arrj arrmin_idx: min_idx j Swap the found minimum element with the first element of the unsorted part of array arri, arrmin_idx arrmin_idx, arri return arrThis function takes a list of numbers arr as an input and sorts it in ascending order using the selection sort algorithm. The outer loop runs from the first element to the last element of the array. Inside the outer loop, we find the index of the minimum element in the unsorted part of the array. Then, we swap the minimum element with the first element of the unsorted part of the array. As a result, after each iteration of the outer loop, the smallest element of the unsorted part of the array is placed at the beginning.You can use this function to sort a list of numbers like this:pythonarr 64, 25, 12, 22, 11sorted_arr selection_sortarrprintsorted_arrThis will output the sorted array:11, 12, 22, 25, 64 . Response in Sesotho: Khetho ea mofuta ke algorithm e bonolo e ipapisitseng le ho hlopha. Mona ke tsebetsong ea algorithm ea mofuta oa khetho ho Python: python def selection_sortarr: bakeng sa i in rangelenarr: Fumana ntho e tlase karolong e sa hlophisoang ea array min_idx i bakeng sa j sebakeng i 1, lenarr: haeba arrj arrmin_idx: min_idx j Fapanya bonyane ntho e fumanoeng ka karolo ea pele ea karolo e sa hlophisoang ea array arri, arrmin_idx arrmin_idx, arri return arr Tshebetso ena e nka lenane la dinomoro arr e le se kentsweng mme e e hlophe ka tatellano e nyolohang o sebedisa mokgwa wa kgetho ya mofuta wa algorithm. Loop e ka ntle e tloha ho ntlha ea pele ho ea ho karolo ea ho qetela ea sehlopha. Ka hare ho loop e ka ntle, re fumana index ea bonyane element karolong e sa hlophisoang ea sehlopha. Ka mora moo, re fapanyetsana karolo e nyenyane ka karolo ea pele ea karolo e sa hlophisoang ea sehlopha. Ka lebaka leo, ka mora ho pheta-pheta ha loop e ka ntle, karolo e nyenyane ka ho fetisisa ea karolo e sa hlophisoang ea sehlopha e behoa qalong. U ka sebelisa tsebetso ena ho hlophisa lethathamo la linomoro tse kang tsena: python arr 64, 25, 12, 22, 11 sorted_arr selection_sortarr printsorted_arr Sena se tla hlahisa sehlopha se hlophisitsoeng. : 11, 12, 22, 25, 64 