import multiprocessing as mp

def processInput(i):
        return i * i

if __name__ == '__main__':

    # what are your inputs, and what operation do you want to
    # perform on each input. For example...
    inputs = range(100000000)
    #  removing processes argument makes the code run on all available cores
    pool = mp.Pool(processes=5)
    results = pool.map(processInput, inputs)
    print(results)
