I want to take the working code from below and put it into a function.
import multiprocessing as mp def parameters(x,n): for i in x: yield (i,n)