texto = "Python" string_invertida = ''.join(reversed(texto)) print(string_invertida) # Saída: "nohtyP"