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.
Go to settings and hit privacy to change who can see your posts
Why are you asking other people to answer a question about something that's affected <u>you?</u>
Answer:
Need to know
Explanation:
Need to know is a policy or predetermined criterion by which the requester of an information is granted access to the requested information only when a valid need is establish and not just because of his or her clearance, position, or rank.