python Write a program that will take a file named Celsius.dat that contains a list of temperatures in Celsius (one per line), a
nd will create a file Fahrenheit.dat that contains the same temperatures (one per line, in the same order) in Fahrenheit
1 answer:
with open('celcius.dat', 'r') as fIn, open('fahrenheit.dat', 'w') as fOut:
for line in fIn:
fahrenheit = 9.0 / 5.0 * float(line) + 32
fOut.write("%.1f\n" % fahrenheit)
You can control the number of decimals in the formatting clause in the write statement.
You might be interested in
Answer:
I think in there transmission you know inputs into ports like for their own
Explanation:
likeslike Spanish and is obviously inputs and outputs their portsinto the portsdifferent ports you know
Game’s top rack not top pop
1) Bricklayer 2) Roofer 3) Architectural drafter 4) landscape architect
2tb I think I'm not that sure