Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

please use python and continue the code on p2. Instructions The user provides for us values from the thermometers that we need to store 1.

please use python and continue the code on p2.
image text in transcribed
image text in transcribed
Instructions The user provides for us values from the thermometers that we need to store 1. Read four numbers from the user. Note - these values may not be integer valves, they are measurements! 2 Create a list, storing these four values one by one in the order they were read. 3. Print all elements in the list. 4 Subtract the first two elements (in index 0 and 1) and save the value in a new variable subtraction_result 5. Add the second two elements (in Index 2 and 3) and save the value in a new variable addition_result 6. Insert into the list the two new variables, subtraction_result then addition_result (use the append method) 7. Print the new list Example input 1 2 4 Example output 11.0, 2.0, 3.0, 4.01 11.0, 2.0, 3.0, 4.0, -1.0, 7.01 Think why does the output looks like this, even though we gave it integers in our input Please note that the first element of the list in python will be at the index o. main.py Load defau 1 numi - input 2 num2 - input 3 num3 - input 4 num4 - input) 5 6'' Type your code here. TI

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

MySQL/PHP Database Applications

Authors: Brad Bulger, Jay Greenspan, David Wall

2nd Edition

0764549634, 9780764549632

More Books

Students also viewed these Databases questions

Question

2. What type of team would you recommend?

Answered: 1 week ago

Question

What was the role of the team leader? How was he or she selected?

Answered: 1 week ago