Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

using python Challenge 2 Complete the function below according to the doc string: You have some numeric data stored in a dictionary. The data could

image text in transcribed

using python

Challenge 2 Complete the function below according to the doc string: You have some numeric data stored in a dictionary. The data could represent any number of things, for example, people's names and their height in inches, or cities and their populations. Return all the keys of the dictionary where their associated values are greater than or equal to some cutoff. def keys geq_cutoff(num_ dict, min_cutoff): Returns all the keys (as a set) from num_dict that have value greater than or equal to min_cutoff Parameters num dict: dictionary min cutoff: float All the values in num dict are numeric. Comparison with the num dict values. Return all keys, where their values >= mincutoff - Returns set All keys from num dict whose values meet the cutoff criterion. Example Input: keys geq_cutoff ('Alice':21, 'Brett: 20, 'Carlos: 31), 21) Output: ['Alice', Carlos) Please submit a file name q2.py with your query Choose File No file chosen

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

How Do I Use A Database Research Tools You Can Use

Authors: Laura La Bella

1st Edition

1622753763, 978-1622753765

More Books

Students also viewed these Databases questions

Question

List and explain the key steps involved in text analytics.

Answered: 1 week ago