Question: Using for loop to iterate over the following dictionary D = { a 1 : 1 9 0 0 , b 2
Using for loop to iterate over the following dictionary Da:b: c: d: f: g: and if statement to check if the value is greater than If the value is greater than subtract from the value, for each key in the dictionary D and add it to the new list L Otherwise if the value is less then just append the value.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
