Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Palindrome:
- @staticmethod
- def is_palindrome(word):
- #Please write your code here.
- reversedword = ''
- for ch in word[::-1]:
- reversedword = reversedword + ch
- if word == reversedword:
- return True
- else:
- return None
- word = input()
- print(Palindrome.is_palindrome(word))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement