Advertisement
Guest User

Untitled

a guest
Jun 20th, 2019
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. class Palindrome:
  2. @staticmethod
  3. def is_palindrome(word):
  4. #Please write your code here.
  5. reversedword = ''
  6. for ch in word[::-1]:
  7. reversedword = reversedword + ch
  8. if word == reversedword:
  9. return True
  10. else:
  11. return None
  12. word = input()
  13. print(Palindrome.is_palindrome(word))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement