I have a list which we can iterate using for loop as follows:
myList = ['A', 'B', 'C', 'D']
for elem in myList:
print("Element = %s" % elem)
The above will iterate the list in sequence. But I want do that in parallel. How to do that? Is it possible to do so without creating any new method? Is it necessary to create any multithreading or multiprocessing?
Please advise. Any example is appreciated
Thanks.