QuestionQ111Verified/Control Flow – Conditional Blocks and LoopsCopy linkReport a problemAsk AstroTutorSave questionWhich of the following for loops would produce the number pattern shown below? ABCDShow AnswerAnswerExplanationrange(1, 6) iterates over the integers 1 through 5. For each value, str(i) * 5 repeats its digit five times, producing 11111, 22222, 33333, 44444, and 55555 on separate lines.Show comments0Show commentsCommunity DiscussionNo comments yet. Be the first to start the discussion!
Community Discussion