QuestionQ225Verified/Data Collections – Tuples, Dictionaries, Lists, and StringsCopy linkReport a problemAsk AstroTutorSave questionWhat is the expected result printed by the following code? A['1', '2', '3', '4']B(1, 2, 3, 4)C('1', '2', '3', '4')DThe code is erroneous.Show AnswerAnswerExplanationA comma-separated sequence creates a tuple even without parentheses. Adding two tuples concatenates their elements, and printing the resulting tuple displays ('1', '2', '3', '4').Show comments1Show commentsCommunity DiscussionNo comments yet. Be the first to start the discussion!
Community Discussion