Generation

generate functionSat, 29 Apr 2023

Leer una cadena de caracteres e imprimir las palabras que sean palíndromos

def palindromo(text): text = text.lower() text = text.split() for word in text: if word == word[::-1]: print(word)

Want to kickstart your project?Use the new AI Studio to create your code