Reading a file without newlines,[line.rstrip('\n') for line in file]