From 6a2920754c289e56f1fd9bded2b9bb534fec7aa7 Mon Sep 17 00:00:00 2001 From: Calamar Date: Fri, 24 Jul 2020 22:57:50 -0500 Subject: [PATCH] Challenge complete! 01 --- src/main.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main.py b/src/main.py index 445b8e4..32f938c 100644 --- a/src/main.py +++ b/src/main.py @@ -14,8 +14,10 @@ def is_palindrome(palindrome): - # Start coding here - + palindrome = palindrome.replace(' ', '').lower() + emordnilap = palindrome[-1::-1] + ans = emordnilap == palindrome + return ans def validate(): for palindrome in PALINDROMES: