Raphafrei

Text Inversor

Oct 15th, 2020
2,379
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.20 KB | None | 0 0
  1. texto = ''
  2. resultado = ''
  3.  
  4. texto = input("Insira um texto para inverter:\n")
  5.  
  6. def Inversor(textoParaInverter):
  7.     return textoParaInverter[::-1]
  8.  
  9. resultado = Inversor(texto)
  10.  
  11. print(resultado)
Advertisement
Add Comment
Please, Sign In to add comment