use your generator’s .send()
method. But yeah, you somehow have to be able to push values into the input queue from outside. You could also have a list, not necessarily an int (since you need two inputs at the start: the phase and the 0)
use your generator’s .send()
method. But yeah, you somehow have to be able to push values into the input queue from outside. You could also have a list, not necessarily an int (since you need two inputs at the start: the phase and the 0)