python readlines avoid \n code example Example: python readlines without n temp = file.read().splitlines()