From b4c3022ae2fe683dbdb8c35152be8e2143e1bb7e Mon Sep 17 00:00:00 2001 From: Mayur Goyal Date: Thu, 1 Oct 2020 13:43:17 +0530 Subject: [PATCH] Update main.py --- src/main.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main.py b/src/main.py index 86f3f66..6616406 100644 --- a/src/main.py +++ b/src/main.py @@ -14,8 +14,10 @@ def is_palindrome(palindrome): - # Start coding here - pass + st=palindrome.replace(" ","") + if st[::-1]==st: + return True + return False def validate(): for palindrome in PALINDROMES: