#Exer. 4.4 in "A primer on..." Fdeg = [] Cdeg = [] with open('fdeg.txt','r') as infile: for i in range(3): infile.readline() for line in infile: words = line.split() F = float(words[-1]) C = (F-32)*5/9 Fdeg.append(F) Cdeg.append(C) with open('fc_deg.txt','w') as outfile: for F,C in zip(Fdeg,Cdeg): outfile.write(f'{F:6.2f} {C:6.2f} \n') """ Terminal> python f2c_file_read_write.py No output to terminal. See file fc_deg.txt """