 Kokoma fonction oyo e vérifier soki élément moko ezali na ba arrays mibale oyo epesami
Solo! Tala fonction moko ekomami na Python oyo e vérifier soki élément ezali na ba arrays mibale epesami: ```python def common_element(array1, array2): '''Fonction ya ko vérifier soki ezali na élément commun na ba arrays mibale''' pona élément na array1: if element in array2: return True return False ``` Mosala oyo ezuaka ba arrays mibale (array1 na array2) lokola entrée pe e vérifier soki ezali na élément commun oyo ekabolami kati ya ba arrays mibale. Esalaka yango na ko iterer likolo ya élément moko na moko na array1 pe ko vérifier soki ezali na array2. Soki élément ezwami, fonction ekozongisa Solo kolakisa ete ezali na élément commun. Soki te, sima ya ko iterer likolo ya ba éléments nionso na array1, fonction ezo zongisa Lokuta oyo elakisaka que ba arrays mibale ekabolaka ba éléments communs te. Okoki kosalela mosala oyo boye: ```python arr1 = [1, 2, 3, 4, 5] arr2 = [5, 6, 7, 8, 9] imprimer(élément_common(arr1, arr2)) #Arr1 ya solo = [1, 2, 3, 4] arr2 = [6, 7, 8, 9] imprimer (élément_common (arr1, arr2)) #Lokuta ```