Answered step by step
Verified Expert Solution
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
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 chosenStep 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