From c1bfca713b02932854c37878b24d6643594b00a5 Mon Sep 17 00:00:00 2001 From: Juan Espitia Date: Sun, 23 Aug 2020 18:17:21 -0500 Subject: [PATCH] palindromo resuelto --- src/main.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/main.py b/src/main.py index 86f3f66..9383df2 100644 --- a/src/main.py +++ b/src/main.py @@ -15,6 +15,16 @@ def is_palindrome(palindrome): # Start coding here + proof = palindrome.replace(" ","") + proof_low = proof.lower() + proof1 = list(proof_low) + proof2= list(proof_low) + proof2.reverse() + if proof1 == proof2: + return True + else: + return False + pass def validate():