From bc4dd678fe4465af4481235e223800ef836101b4 Mon Sep 17 00:00:00 2001 From: Marco Pardo Date: Mon, 7 Sep 2020 16:56:24 -0500 Subject: [PATCH] Problem solved --- src/main.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/main.py b/src/main.py index 86f3f66..7a76cf9 100644 --- a/src/main.py +++ b/src/main.py @@ -15,7 +15,15 @@ def is_palindrome(palindrome): # Start coding here - pass + palindrome = palindrome.replace(" ", "") + palindrome = palindrome.lower() + reverse = palindrome[::-1] + if reverse == palindrome: + return True + else: + return False + + def validate(): for palindrome in PALINDROMES: