repl.it
@claracavalcante/

TESTE ALGORITMOS EBOOK

Python

No description

fork
loading
Files
  • main.py
main.py
1
2
3
4
5
6
7
8
class Palindrome:
  @staticmethod
  def is_palindrome(word):
    word = word.lower()
    word_backward = word[::-1]
    return (word == word_backward)
word = input()
print(Palindrome.is_palindrome(word))