Utilisation de la méthode rStrip () pour supprimer le caractère newline d'une chaîne

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