I have defined a function that takes single integer input and will return the output integer.
def get_output(n):
output = # process the integer
return output
now I have defined an input list that has to be processed using the function defined above.
input_list = [1,2,3,5,6,8,5,5,8,6,5,2,5,2,5,4,5,2]
Now I have defined an empty output list that will store the output from the function.
output_list = []
Now I want to go through every single item of input_list and append it to the output_list. I know how to achieve this using a sequential manner but I want to know how to parallelize this task.
Thanks in advance.