For anyone who has some experience with most of the exercises on the Python track, any help/thoughts you can lend below would be very much appreciated.
Received the following issue today around the Generators
Concept exercise, and they do have a point.
While generators and/or generator expressions can be used in the Scale Generator
exercise (yes I know itâs deprecated on many other tracks, but please leave that aside for now) â it doesnât exactly practice generators/generator expressions.
What would be your recommendations for practice exercises that better practice/use generators/generator expressions?
Iâm looking for 3-5 (if possible) in increasing level of difficulty. Totally fine to say ânone - youâll need to make themâ (and if you have exercise ideas, donât be shy!!). Also totally fine to recommend exercises that could be adapted for a <Exercise> Generator Edition
version - Iâm not opposed to doing a set of Python-specific practice exercise versions if they then help students better practice certain concepts.
These exercises to practice generators
should seem somewhat natural â whether because a generator
would be more performant/clearer in the solution, or some other important point.
Or to reframe a bit: the exercises would help students understand/answer the question âwhy use a generator?â. They do not have to require that a generator be returned â just that generators are an important part of the solution.
Again - many thanks in advance for your suggestions!