1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
torisob [31]
4 years ago
9

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
Computers and Technology
1 answer:
jekas [21]4 years ago
6 0

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
What's the difference between repetition and selection control structure.​
mixer [17]

Answer:

Selection statements test conditions and selectively execute code depending on the outcome of the test condition, whereas repetition statements repeat a set of statements till a test condition is satisfied.

7 0
3 years ago
Read 2 more answers
What is a subjective point of view
anastassius [24]

Answer:

one based on opinion rather than fact, upon which reasonable people could disagree.

Explanation:

An example of a subjective point of view is a position taken on whether a movie or book is good or bad

6 0
3 years ago
Read 2 more answers
why is it that everytime i ask a question (with brainly plus) it says there arnt any matches for your search. are the servers do
fiasKO [112]
That happens to me to
6 0
3 years ago
Michael has increased the contrast of the given picture. Which feature or menu option of a word processing program did he use?
shepuryov [24]

ANSWER

A. Format  

Hope this helps!!!

8 0
4 years ago
Read 2 more answers
Best beginner racing drones?
Artemon [7]
One that are somewhere between 200-400 for the good quality
8 0
3 years ago
Read 2 more answers
Other questions:
  • Write a sentence about a mineral you use and how you use it
    12·1 answer
  • Which of the following protects against cave-ins? A. All answer choices protect against cave-ins B. Shielding C. Shoring D. Slop
    5·2 answers
  • Take some time to do some research about small businesses in your area. Select one and using HTML design a simple site that educ
    11·1 answer
  • If you need to provide a storage server with fault tolerance through the use of multiple paths between the server and the actual
    14·1 answer
  • A PC is not able to connect to a wired network. Pinging the loopback address is successful, but the gateway cannot be reached. O
    12·1 answer
  • Which of these ia an example of gene flow?
    5·1 answer
  • How do science, mathematics, and technology each influence engineering
    9·2 answers
  • Explain the types of computer on the basis of model<br>​
    5·2 answers
  • I need help with humans need not apply for codeing
    15·2 answers
  • 2. What is MOST TRUE of a mature technology?
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!