diff --git a/src/main.py b/src/main.py index 86f3f66..b9361cd 100644 --- a/src/main.py +++ b/src/main.py @@ -15,7 +15,12 @@ def is_palindrome(palindrome): # Start coding here - pass + palindrome = palindrome.replace(" ", "").lower() + palindrome_invert = palindrome[::-1] + if palindrome == palindrome_invert: + return True + else: + return False def validate(): for palindrome in PALINDROMES: