qobjects = [
{
question: "Consider the following code:x = {'type' : 'fruit', 'name' : 'banana'}
What is a correct syntax for changing the type from fruit to berry?",
options: [
"x{'type'} = 'berry'",
"x['type'] = 'berry'",
"x.get('type') = 'berry'"
],
correct: 1
},
{
fillintheblanks: "exercise_dictionaries2.htm"
},
{
question: "Consider the following code:x = {'type' : 'fruit', 'name' : 'banana'}
What is a correct syntax for changing the name from banana to apple?",
options: [
"x.update({'name': 'apple'})",
"x.update('name' = 'apple')",
"x.update('name','apple')"
],
correct: 0
},
]