zip

zip(a, b) walks two or more iterables side by side and gives tuples: (a[0], b[0]), (a[1], b[1]), and so on. Use it instead of indexing two lists with the same i.

zip stops at the shortest input, without any warning. That quietly drops data when the lengths don't match. Pass strict=True to get a ValueError instead.

zip(*pairs) does the reverse: it "unzips" a list of pairs into separate tuples. The * spreads the list out as separate arguments.

A neat trick: zip(xs, xs[1:]) gives each item with its neighbour, useful for checking if a list is sorted.

Run it, then add a fourth name without a score.