Question: Q 1 0 : Putting it all together ( 1 point ) Here, we'll update the values in dictionary, storing the output in a dictionary

Q10: Putting it all together (1 point)
Here, we'll update the values in dictionary, storing the output in a dictionary called other_dictionary. This new dictionary will have the same keys, but some values will be updated.
The values in other_dictionary should be updated, such that if the value in the original dictionary is...
odd: update the the value stored in the dictionary to store the squared difference of the original value and '10'. Remember, you created a function to do this above.)
even: store the original value (from dictionary).
Hints:
to loop through key-value pairs in a dictionary, check out the .items method
You created a squared_diff function above.

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!