From dee1403760994fcd7324f95f603ca5f4dfad8be0 Mon Sep 17 00:00:00 2001 From: Jaime Escobedo Date: Thu, 20 Aug 2020 16:41:47 -0500 Subject: [PATCH] Reto Terminado --- src/main.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/main.py b/src/main.py index 86f3f66..bdbe986 100644 --- a/src/main.py +++ b/src/main.py @@ -15,6 +15,13 @@ def is_palindrome(palindrome): # Start coding here + palindrome = palindrome.replace(' ','') #Esto reemplaza cualquier espacio por un string vacío + palindrome = palindrome.lower() #Pasa palindrome a minúsculas + palabra_invertida = palindrome[::-1] + if palindrome == palabra_invertida: + return True + else: + return False pass def validate():