diff --git a/src/main.py b/src/main.py index 86f3f66..637bd4f 100644 --- a/src/main.py +++ b/src/main.py @@ -14,8 +14,23 @@ def is_palindrome(palindrome): - # Start coding here - pass + """ + validates that the string palindrome is a + palindrome (it is a word or phrase that + read equal to right and back + + param str palindrome is a word or Phrase + + returns True if the word or phrase is a + palindorme or False if not. + """ + + reversed_letters = palindrome[::-1] + + if reversed_letters.lower().replace(' ','') == palindrome.lower().replace(' ',''): + return True + else: + return False def validate(): for palindrome in PALINDROMES: