Python: Using the send function to inject parameters into a generator @gjenkinsedu
Python: Using the send function to inject parameters into a generator  @gjenkinsedu
Uploaded December 2018 | Updated September 2026, 2 weeks ago
It is sometimes useful to pass information into a generator in python to modify its future behavior. The send method does this. Here is a simple example.
Python: Using the send function to inject parameters into a generatorRecursion 6 | Sierpinski TriangleCant add App groups to taskbar in Windows 11, What to do now!Windows 11 - Minimize all window to remove clutter with shortcutLinear Data Structures 3 | Stack: ParenthesesAnalysis 7 | Timing in List and DictLinear Data Structures 4 | Stack: binary & hex converterSearch/Sort 8 | insertion sortInstalling New WSLg in Windows 11, Installing Ubuntu Linux and  updating.Introduction 3 | Four ways to run pythonAnimated Visualization BFS Algorithm: Teaching AidIntroduction 20 | Has-A and Polymorphism
Professor Gerry Jenkins |

Python: Using the send function to inject parameters into a generator

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER