how to remove new line in python3 code example Example: python remove new line lines = ("line 1 \r\n") lines.rstrip("\n\r")