<prompt> Ngola tšebetso ho hlopha palo e felletseng ea lipalo ka tatellano e nyolohang.3, 7, 2, 1, 6  <response>: Instruction in English: Write a function to sort an array of integers in ascending order. . Response in English: Here is a function in Python that sorts an array of integers in ascending order:pythondef sort_arrayarr: return sortedarrarray 3, 7, 2, 1, 6sorted_array sort_arrayarrayAlternatively, you could use bubble sort:pythondef sort_arrayarr: n lenarr for i in rangen: for j in range0, n-i-1: if arrj arrj1: arrj, arrj1 arrj1, arrj return arrarray 3, 7, 2, 1, 6sorted_array sort_arrayarrayIn both cases, the input array 3, 7, 2, 1, 6 will be sorted in ascending order to produce the output 1, 2, 3, 6, 7. . Response in Sesotho: Mona ke tsebetso ho Python e hlophisang palo e felletseng ea lipalo ka tatellano e nyolohang: python def sort_arrayarr: return sortedarr array 3, 7, 2, 1, 6 sorted_array sort_arrayarray Ntle le moo, o ka sebelisa mofuta oa bubble: python def sort_arrayarr: n lenarr bakeng sa i in rangen: bakeng sa j mofuteng0, ni-1: haeba arr j arrj1: arrj, arrj1 arrj1, arrj return arr array 3, 7, 2, 1, 6 sorted_array sort_arrayarray Maemong ana ka bobeli, lenane la ho kenya 3, 7, 2, 1, 6 le tla hlophisoa ka tatellano ea ho nyoloha ho hlahisa tlhahiso 1, 2, 3, 6, 7. 