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]
3 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]3 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
Which statement does not describe how to save a presentation?
Hunter-Best [27]
<h2>Hello!</h2>

The answer is 1.) Click in the side panel

<h2>Why?</h2>

All of the three other options are correct steps to save a presentation.

2.) Click on the save icon: Clicking on the save icon will show you the saving options that you may use like: saving locations, saving file names, selecting the format and version of the file you want to save, among others.

3.) Giving it a name that makes sense: Giving a name that makes sense will help you to find the file in the future with no effort, you can select the name you want to use after you click on the save icon.

4.) Select save from the file menu: It will be the last step after you have set all your preferences. After this step, you will be able to find the file that you just saved in the location that you have chosen.

Have a nice day!

8 0
3 years ago
Every finger has a key it should be resting on when you are not typing<br> 1. False<br> 2. True
Levart [38]

Answer:

true.

Explanation:

your point fingers should always be

your left should rest on F

your right should rest on J

4 0
2 years ago
Read 2 more answers
Rachel wants to post content from digital cameras on the web. Which online tool will help Rachel to post and edit content on a w
GrogVix [38]

Answer: blogs

Explanation: because you can send and edit your video on your webpage

4 0
3 years ago
Do Violent Video Games Make People More violent in Real Life ?
vova2212 [387]
To be honest, NO. Its just a videogame but i see what you are saying...
4 0
3 years ago
Write a sub-program to display the acceleration of car. The program should ask initial velocity, final velocity, and time taken
LekaFEV [45]

Explanation:

If your asking the program in modular programming of Q-Basic & in sub procedure then here it is.

I hope it will help you..

<em>-</em><em> </em><em>Regards</em><em> </em><em>Rishab</em><em>.</em><em>.</em>

8 0
1 year ago
Other questions:
  • WILL GIVE BRAINLIEST! A rent payment is an example of which type of expense?
    14·2 answers
  • What control features will you use in the input screens to aid in data entry? give a specific example of how you will use at lea
    6·1 answer
  • jason works for a restaurant that serves only organic local produced what trend is this business following?
    6·2 answers
  • A(n) ________ moves over the spinning platters to retrieve data from the hard disk.
    6·1 answer
  • It is possible to change the shape of a text box.
    10·1 answer
  • which feature of organisations to manage needs to know about to build and use information system successfully
    6·1 answer
  • 11.6 Code Practice edhesive
    11·1 answer
  • What is a thoughtware​
    7·1 answer
  • Your project will require a 7-day work week rather than the traditional 5-day. How can you adapt the software to this new schedu
    15·1 answer
  • Hello everyone! can anybody help me? i need help with computing.
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!