To update the value of the key "speed" in the dictionary record
, you can use the update
method correctly by passing a dictionary with the new key-value pair. The correct option is:
record.update({'speed': 200})
So the correct response is:
record.update({'speed': 200})