QuestionQ267Verified/Data Collections – Tuples, Dictionaries, Lists, and StringsCopy linkReport a problemAsk AstroTutorSave questionWhat output is expected from the following code? A('Peter', 'Peter',)BPeterPeterCThe code is erroneous.D('Peter')E()Show AnswerAnswerExplanationThe reversed list starts with 3, making the tuple repetition count 3 - 3 = 0. Multiplying a tuple by zero produces an empty tuple.Show comments1Show commentsCommunity DiscussionNo comments yet. Be the first to start the discussion!
Community Discussion