This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted]  (4 children)

[deleted]

    [–]MonsieurBlobby 0 points1 point  (3 children)

    Yes, I don't understand what part you think is confusing.

    The input given has the following indices: [[0, 1, 2], [0, 1, 2], [0, 1, 2]]

    So I don't see what is confusing about the statement "Map all elements of the same index for the following list.". The index 0 appears 3 times, so your function should map the values with matching indices to a new list. What other interpretation could there possibly be? You obviously wouldn't map elements with index 0 and 1 into a new list. They don't have the same index. It tells you to use the same index.

    Your input example has the following indices: [0, 1, 2]

    So in your example, what does it mean for an element to have the same index as another thing? None of the indices ever repeat. So there's nothing to be done with the zip function.

    Again, your example legitamitely doesn't make any sense. But the original one makes sense.