Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

9.9 (LAB)Temperature Dictionary (Python 3) ( Dictionaries and Sets) Create a function called temperature that takes one argument called temps. temps is a list of

9.9 (LAB)Temperature Dictionary (Python 3) ( Dictionaries and Sets)

Create a function called temperature that takes one argument called temps. temps is a list of recorded temperatures. Your function should return a dictionary where the key is the tens and hundreds of the temperatures and the value is a list of the temperatures in that range. ( 4 pts )

temps = [98, 62, 94, 102, 94] result = temperature(temps) 

result will contain a dictionary. {90:[98, 94, 94], 60:[62], 100:[102]} Make sure you write a docstring for your function as well. (1 pt)

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

Advanced MySQL 8 Discover The Full Potential Of MySQL And Ensure High Performance Of Your Database

Authors: Eric Vanier ,Birju Shah ,Tejaswi Malepati

1st Edition

1788834445, 978-1788834445

More Books

Students also viewed these Databases questions

Question

Evaluate these combinations: a. C53 b. C109 c. C66 d. C201

Answered: 1 week ago

Question

Prepare a constructive performance appraisal.

Answered: 1 week ago

Question

List the advantages of correct report formatting.

Answered: 1 week ago