QuestionQ26Verified/Data Collections – Tuples, Dictionaries, Lists, and StringsCopy linkReport a problemAsk AstroTutorSave questionWhat is the expected output from the following code? AThe program will cause an error.B(1, 4, 9)C('A', 'D', 'Z')D(5.0, 7.5, 9.9)Show AnswerAnswerExplanationMultiple assignment uses positional unpacking. In t1, t3 = t2, t4, t1 is assigned the tuple previously stored in t2, so printing t1 displays ('A', 'D', 'Z').Show comments0Show commentsCommunity DiscussionNo comments yet. Be the first to start the discussion!
Community Discussion