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