Event Coordinator Solution - yield (Jane, 35) AND add to dictionary using send method

This project simply didn’t have sufficient guidance / explanation required to complete the project. For me the difficulty was in figuring out what was going on behind the scenes when using the send method in the context of multiple ‘yields’ in the generator. I ended up using Thonny’s debugger to step into the code very slowly. The following code achieves the following: it yields the line_data (Jane, 35) sent to the generator when iterating through the generator; it adds the sent data to the dictionary.

Hope it helps someone.

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.