diff --git a/src/main.py b/src/main.py index 86f3f66..4f0eb6c 100644 --- a/src/main.py +++ b/src/main.py @@ -14,8 +14,17 @@ def is_palindrome(palindrome): - # Start coding here - pass + letter = ''.join(palindrome).replace(' ','').lower() # + reverse_letter = ''.join(palindrome[::-1]).replace(' ', '').lower() + if letter == reverse_letter: + # print('ifpalabra: ', letter) + # print('ifReversa: ', reverse_letter) + return True + else: + # print('elsepalabra: ', letter) + # print('elseReversa: ', reverse_letter) + return False + def validate(): for palindrome in PALINDROMES: