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: