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