# Definindo uma string s = 'Olá Mundo' # Invertendo a string print(s[::-1]) # Saída: 'odnuM álO'