texto = ' Python é divertido! ' # Convertendo para maiúsculas texto_maiusculo = texto.upper() # Removendo espaços em branco texto_limpo = texto.strip() # Substituindo palavras texto_novo = texto.replace('divertido', 'incrível') # Dividindo a string palavras = texto.split(' ')