Question: 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

 using python Challenge 2 Complete the function below according to the

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!