Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Problem 4: Filling in a program design (15 points) Your hard drive died, and a helpful technical professional restored what data she could. Unfortunately,
Problem 4: Filling in a program design (15 points) Your hard drive died, and a helpful technical professional restored what data she could. Unfortunately, a key piece of code in your data analysis pipeline was corrupted - you only have your original notes to go on, as represented by the comments below. Write the missing lines of code. # Just some placeholder data - the real data was corrupted and we're getting a backup copy later, # but this will let us run the code without errors. Change the values as needed to test. plant_measurements = [4.0, 7.0, 6.0, 10.0, 8.0] ## MISSING: ## MISSING: ## MISSING: # if plant measurements is an empty list, print an error message (and skip the rest of the code) print the three smallest measurements, all on one line, separated by spaces if the two smallest plants are below 5.0, or the smallest is below 2.0, print a warning that the specimens are too unhealthy. Else print "ok"
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started