Locomotive Engineer Grammatical Error

In the Locomotive Engineer Python exercise, there is a paragraph that sounds off.

The original phrase is this:

Using * unpacking with the zip() function is another common use case. Since zip() takes multiple iterables and returns a list of tuples with the values from each iterable grouped:

By having Since at the start, it is expected that there is a follow-up statement (e.g. “Since Python is cool, I learned it on Exercism!”), but it doesn’t exist, and there isn’t anything following the code snippet either.

It could be implied that the code snippet is the follow-up statement, but it sounds a little off if that’s the assumption.

A quick suggestion is to remove Since entirely:

Using * unpacking with the zip() function is another common use case. zip() takes multiple iterables and returns a list of tuples with the values from each iterable grouped:

This sounds a lot more direct and I think reads better.

Or make it one long sentence and keep the Since:

Using * unpacking with the zip() function is another common use case, since zip() takes multiple iterables and returns a list of tuples with the values from each iterable grouped:

Thanks for reporting. Corrected introduciton.md and about.md in PR 3992. Changed to:

Using * unpacking with the [zip() built-in][zip] is another common use case.
The zip() function takes multiple iterables and returns a list of tuples with the values from each iterable grouped:

>>> values = (['x', 'y', 'z'], [1, 2, 3], [True, False, True])
>>> a, *rest = zip(*values)
>>> rest
[('y', 2, False), ('z', 3, True)]

Links out to zip, in the docs.

Will be merged shortly.

1 Like