<prompt> Ngola tšebetso e lekolang hore na element e teng ka lihlopha tse peli tse fanoengnan  <response>: Instruction in English: Write a function that checks if an element exists in two given arrays . Response in English: Sure! Heres a function written in Python that checks if an element exists in two given arrays:pythondef common_elementarray1, array2: Function to check if there exists a common element in two arrays for element in array1: if element in array2: return True return FalseThis function takes in two arrays array1 and array2 as input and checks if there is any common element shared between the two arrays. It does this by iterating over each element in array1 and checking if it exists in array2. If the element is found, the function returns True indicating that there is a common element. Otherwise, after iterating over all the elements in array1, the function returns False indicating that the two arrays do not share any common elements.You can use this function as follows:pythonarr1 1, 2, 3, 4, 5arr2 5, 6, 7, 8, 9printcommon_elementarr1, arr2 Truearr1 1, 2, 3, 4arr2 6, 7, 8, 9printcommon_elementarr1, arr2 False . Response in Sesotho: Ehlile! Mona ke tsebetso e ngotsoeng ho Python e hlahlobang hore na ntho e teng ka lihlopha tse peli tse fanoeng: python def common_elementarray1, array2: Mosebetsi oa ho hlahloba hore na ho na le ntho e tloaelehileng ka lihlopha tse peli bakeng sa element in array1: haeba element in array2: kgutlisetsa nnete ya nnete E fosahetse Tshebetso ena e nka lihlopha tse peli array1 le array2 e le ho kenya le ho hlahloba hore na ho na le ntho leha e le efe e tloaelehileng e arolelanoang pakeng tsa lihlopha tse peli. E etsa sena ka ho pheta-pheta ntho e ngoe le e ngoe ka hara array1 le ho hlahloba hore na e teng ka hara array2. Haeba element e fumanoa, mosebetsi o khutlisa Nete e bontšang hore ho na le ntho e tloaelehileng. Ho seng joalo, ka mora ho pheta-pheta likarolo tsohle ho array1, tsebetso e khutlisa False e bontšang hore lihlopha tse peli ha li arolelane likarolo tse tšoanang. U ka sebelisa tsebetso ena ka tsela e latelang: python arr1 1, 2, 3, 4, 5 arr2 5, 6, 7, 8, 9 printcommon_elementarr1, arr2 True arr1 1, 2, 3, 4 arr2 6, 7, 8, 9 printcommon_elementarr1, arr2 False 