 Bosala fonction pona ko vérifier soki chaîne ya entrée ezali palindrome.
Tala fonction moko ya pete na Python oyo e vérifier soki molongo oyo epesami ezali palindrome: ```python def is_palindrome(input_string): # Bobongola molongo na makomi ya mike mpe longola bisika clean_string = input_string.replace(" ", "").lower () # Reverse the string reversed_string = clean_string[::-1] # Tala soki molongo oyo epetolami ekokani na reverse na yango soki clean_string == reversed_string: return Solo else: return Lokuta ``` Sikoyo, okoki kosalela fonction oyo pona ko vérifier soki nsinga moko oyo epesami ezali palindrome to te. Tala ndakisa: ```python # Ndakisa 1 text = "Able ezalaki ngai ere namonaki Elba" result = is_palindrome(text) print(result) # Ezongisaka Solo # Ndakisa 2 text = "Mbote mokili" result = is_palindrome(text ) imprimer(résultat) # Ezongisaka Lokuta ```