Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

create a list called summary_list. The number of entries in summary list is the same as the number of lists in the variable datasets.

create a list called summary_list. The number of entries in summary list is the same as the number of lists # % % Experimental data datasets = [] datasets.append ([14.2, 32.5, 42.1, 74.5, 43.5]) datasets.append 

create a list called summary_list. The number of entries in summary list is the same as the number of lists in the variable datasets. The entries of the list summary_list is computed as follows: summary_list[0] = minimum value in datasets[0]/ number of entries in datasets[0] summary_list[1] minimum value in datasets[1] / number of entries in datasets[1] and so on. You are asked to write the Python code to compute summary list automatically from the variable datasets. You can complete your work in lab05b_prelim.py. Note that your code should be able to work with any variable datasets which is a list of lists of numbers. That is, if the contents of the variable datasets change, then your code should still compute the correct summary list. You can test that by commenting/uncommenting Lines 10-15 in the file c # % % Experimental data datasets = [] datasets.append([14.2, 32.5, 42.1, 74.5, 43.5]) datasets.append ([25.7, 34.1, 48.7, 50.3]) datasets.append ([11.2, 26.9, 95.1, 52.1, 23.5, 5.6, 45.7, 37.8]) datasets.append ([54.7, 25.3]) # datasets.append([-24.7, -57.3, -145.5]) # datasets.append ([-12.5, 14.5, -452, -734.4]) # The variable datasets contain 4 sets of experimental data # E.g. The data set datasets [0] has 5 data points # E.g. The data set datasets[1] has 4 data points # %% # Your task is to create a list called summary_list with as many # entries as the number of lists in the variable datasets # # summary_list[0] #minimum entry in datasets[0] / number of entries in datasets[0] # # This is then repeated for the other entries # # For checking, the expected answers are: # [2.84, 6.425, 0.7, 12.65]

Step by Step Solution

3.43 Rating (150 Votes )

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

Using Microsoft Excel and Access 2016 for Accounting

Authors: Glenn Owen

5th edition

1337109048, 1337109045, 1337342149, 9781337342148 , 978-1337109048

More Books

Students also viewed these Programming questions

Question

Explain how information is entered into an Excel worksheet.

Answered: 1 week ago