readme-script

This commit is contained in:
Rohit Tanwar
2018-02-20 22:42:11 +05:30
parent 7cc78ca4c4
commit 385bf72a3e
34 changed files with 222 additions and 161 deletions

View File

@ -1,4 +1,4 @@
def palindrome(string):
from re import sub
s = sub('[\W_]', '', string.lower())
def palindrome(string):
from re import sub
s = sub('[\W_]', '', string.lower())
return s == s[::-1]