QuestionQ260Verified/Data Collections – Tuples, Dictionaries, Lists, and StringsCopy linkReport a problemAsk AstroTutorSave questionWhat output is expected from the code below? A2B1CThe code is erroneous.D3E4Show AnswerAnswerExplanationA dictionary cannot be used as a key in another dictionary because dictionaries are unhashable. Evaluating crates[box] therefore raises a TypeError, so the code is erroneous.Show comments1Show commentsCommunity DiscussionNo comments yet. Be the first to start the discussion!
Community Discussion