skip the newline while printing `line`,print(line.rstrip('\n'))