a guest Jun 25th, 2019 52 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- word = input()
- def isPalindrome(x):
- if len(x) > 1:
- if x == x[-1] and isPalindrome(x[1:-1]):
- return('The word is Plaindrome.')
- return('It is not.')
- return(True) #As this is a base case.
RAW Paste Data