Usando o método strip () para remover o caractere da nova linha de uma string

# strip() method to remove newline characters from a string
text= "\n Welcome to Python Programming \n"
print(text.strip())
Gorgeous Gazelle