This program is written in the Python programming language and it removes the newline characters ("\n") from a string. It does this in two steps:
""" str1="Tutor Joes\n" #Before Remove NewLine(\n) print(str1) #After Remove NewLine(\n) print(str1.rstrip()) str1="\nTutor Joes\n" #Before Remove NewLine(\n) print(str1) #After Remove NewLine(\n) print(str1.strip()) """ str = "\nTutor \nJoes \nComputer \nEducation\n" #Before Remove NewLine(\n) print(str) #After Remove NewLine(\n) print(''.join(str.splitlines()))
Tutor Joes Computer Education Tutor Joes Computer Education
Learn All in Tamil © Designed & Developed By Tutor Joes | Privacy Policy | Terms & Conditions