Guest User

Untitled

a guest
Jan 18th, 2019
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. #recebe uma string e responde se é um palíndromo ou não
  2. pal = input("Digite uma palavra: ")
  3. if pal.upper() == pal[::-1].upper():
  4. print("{} é um palíndromo!".format(pal))
  5. else:
  6. print("{} não é um palíndromo!".format(pal))
Add Comment
Please, Sign In to add comment