<prompt> Etsa mosebetsi ho hlahloba ke lenane le hlophisoa ka tatellano e nyolohang.nan  <response>: Instruction in English: Create a function to check is a list is sorted in ascending order. . Response in English: Here is one way to create a function in Python that checks if a list is sorted in ascending order:pythondef is_sortedlst: Check if the list is empty or has only one element if lenlst 2: return True Compare each element with the next one for i in rangelenlst - 1: If an element is greater than the next one, return False if lsti lsti1: return False If all elements are in ascending order, return True return TrueYou can use this function by passing a list as an argument. Here is an example:pythonmy_list 1, 2, 3, 4printis_sortedmy_list returns Truemy_list2 1, 3, 2, 4printis_sortedmy_list2 returns False . Response in Sesotho: Mona ke mokhoa o mong oa ho theha tsebetso ho Python e hlahlobang hore na lethathamo le hlophisitsoe ka tatellano e nyolohang: python def is_sortedlst: Sheba hore na lenane ha le na letho kapa le na le ntho e le ngoe feela haeba lenlst 2 : khutlisetsa Nete Bapisa elemente ka ngoe le e latelang bakeng sa i in rangelenlst - 1: Haeba element e le kholo ho feta e latelang, khutlisetsa False if lsti lsti1: khutlisetsa Bohata Haeba likarolo tsohle li ntse li nyoloha ka tatellano ea ho nyoloha, khutlisetsa nete khutlisetso ea Nete U ka sebelisa tšebetso ena ka ho fetisa lethathamo e le khang. Mohlala ke ona: python my_list 1, 2, 3, 4 printis_sortedmy_list returns True my_list2 1, 3, 2, 4 printis_sortedmy_list2 returns Maaka 