Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #recebe uma string e responde se é um palíndromo ou não
- pal = input("Digite uma palavra: ")
- p = list(pal.upper())
- if p == list(reversed(p)):
- print("{} é um palíndromo!".format(pal))
- else:
- print("{} não é um palíndromo!".format(pal))
Add Comment
Please, Sign In to add comment