QuestionQ21Verified/Data SerializationCopy linkReport a problemAsk AstroTutorSave questionWhich two statements correctly describe the Python dictionary data type?Choose twoAThe data contained in a dictionary data type cannot be removed once the dictionary has been created.BThe data stored in a dictionary data type is sequenced and indexed.CThe data contained in a dictionary data type is a key/value pair.DThe data stored in a dictionary data type is not sequenced or indexed.Show AnswerAnswerExplanationA Python dict is a mutable mapping of unique keys to associated values, so its contents are key/value pairs and entries may be removed. It is not a sequence and does not use positional indexes; values are retrieved by their keys. Although current Python dictionaries preserve insertion order, they remain mappings rather than sequence types.Learn morePython documentation: Data model — DictionariesPython documentation: Dictionaries tutorialShow comments0Show commentsCommunity DiscussionNo comments yet. Be the first to start the discussion!
Community Discussion