I'm handling a big chunk of data and executing the "for loop" one after the other seems inefficient.
Example:
So, basically, what I'm looking for is, splitting the task as 10 at a time parallelly(print 0 to 9 at the same time).
Can someone explain which package is best for this and the code for doing it?
Thanks ✌
Example:
Code
for i in range (0,5000):
print(i)So, basically, what I'm looking for is, splitting the task as 10 at a time parallelly(print 0 to 9 at the same time).
Can someone explain which package is best for this and the code for doing it?
Thanks ✌

