Guest User

Untitled

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