QuestionQ153Verified/Data Collections – Tuples, Dictionaries, Lists, and StringsCopy linkReport a problemAsk AstroTutorSave questionWhat is the resulting output of the following code? A[1, 3]B[1, 4]C[4, 3]D[1, 3, 4]Show AnswerAnswerExplanationAssignment makes list2 refer to the same mutable list as list1. Updating the first element through list1 changes that shared list, so list2 evaluates to [4, 3].Show comments1Show commentsCommunity DiscussionNo comments yet. Be the first to start the discussion!
Community Discussion