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: ")
- if pal.upper() == pal[::-1].upper():
- print("{} é um palíndromo!".format(pal))
- else:
- print("{} não é um palíndromo!".format(pal))
Add Comment
Please, Sign In to add comment