1from multiprocessing import Pool 2 3def factorial(N, dictionary): 4 "Compute a Factorial" 5 6p = Pool(5) 7result = p.map(factorial, list(range(1,1000,10))) 8for v in result: 9 print(v) 10 11