Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Complete the following function according to its docstring: def average _ daily _ temp ( high _ temps: list [ int ] , low _

Complete the following function according to its docstring:
def average_daily_temp(high_temps: list[int],
low_temps: list[int])-> list[float]:
"""high_temps and low_temps are daily high and low temperatures for a series
of days. Return a new list of temperatures where each item is the daily
average.
Precondition: len(high_temps)== len(low_temps)
>>> average_daily_temp([26,27,27,28,27,26],[20,20,20,20,21,21])
[23.0,23.5,23.5,24.0,24.0,23.5]
"""

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_2

Step: 3

blur-text-image_3

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

Database Concepts

Authors: David M Kroenke, David J Auer

6th Edition

0132742926, 978-0132742924

More Books

Students also viewed these Databases questions