Jitendra Kumar’s Post

This challenge shows how list comprehensions can iterate through nested structures. The order of iteration matters here. Python processes the outer loop first and then the inner loop, flattening the structure step by step. This concept is widely used when working with matrices or nested lists. THE ANSWER IS: B #Python #NestedLoops #PythonChallenge #ProblemSolving #LearningInPublic

  • text

Option B, as the code uses a list comprehension to flatten a 2D list (matrix) into a 1D list.

B, while the list comprehension is iterating through a list of list. It will always make another list

B [1,2,34] Basic Matrix operations

Like
Reply
See more comments

To view or add a comment, sign in

Explore content categories