You have already completed these exercises!
Do you want to take them again?
You completed the Python Change Dictionaries Exercises from W3Schools.com
Share on:
Consider the following code:x = {'type' : 'fruit', 'name' : 'banana'}What is a correct syntax for changing the type from fruit to berry?
x = {'type' : 'fruit', 'name' : 'banana'}
type
fruit
berry
x{'type'} = 'berry'
x['type'] = 'berry'
x.get('type') = 'berry'