Python HW with Jupyter Notebook
- Declare a variable named DATA as a dictionary object. Assignthe set of key/value pairs shown below.
- Create a function named iter_dict_funky_sum() that takes onedictionary argument.  Â
- Declare a running total integer variable.
- Extract the key/value pairs from DATA simultaneously in a loop.Do this with just one for loop and no additional forms oflooping.
- Assign and append the product of the value minus the key to therunning total variable.
- Return the funky total.
Dictionary Data
DATA = { 2: 7493945, 76: 4654320, 3: 4091979, 90: 1824881, 82: 714422, 45: 1137701, 10: 374362, 0: 326226, -15: 417203, -56: 333525, 67: 323451, 99: 321696, 21: 336753, -100: 361237, 55: 1209714, 5150: 1771800, 42: 4714011, 888: 14817667, 3500: 13760234, 712: 10903322, 7: 10443792, 842: 11716264, 18584: 10559923, 666: 9275602, 70: 11901200, 153: 12074784, 8: 4337229}
Expected Output
>>> iter_dict_funky_sum(DATA)140166242