qobjects = [
{
question: "What is a dictionary method for removing an item from a dictionary?",
options: [
"delete()",
"remove()",
"pop()"
],
correct: 2
},
{
fillintheblanks: "exercise_dictionaries4.htm"
},
{
fillintheblanks: "exercise_dictionaries5.htm"
},
{
draganddroptext: "myvar = {'type' : 'fruit', 'name' : 'apple', 'color' : 'red'}___ myvar[___]",
draganddropquestion: "Insert a correct syntax for removing the 'color' item of the dictionary:",
options: [
"'red'",
"del",
"'color'",
"2",
"'2'"
],
correct: [1, 2]
}
]