Question: python in. Problem 1 # Modify and return the given dictionary as follows: if the key a H has a value, set the key b
in. Problem 1 \# Modify and return the given dictionary as follows: if the key "a" H has a value, set the key "b" to have that value, and set the key "a" * to have the value \# \# prob_one ({ " a ": "candy", "b": "dint" }){ "a": ";,"b:"candy} * prob_one ({ "a": "candy" }){ " a ": "n, "b": "candy" } " prob_one(\{"a": "candy", "b": "carrot", "c": "meh" }){ "a": ": "b": "candy", "c": "meh" def prob_one(dictionary): * Problem 1 code goes here: return dictionary
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
