How to create n number thread in python. i want iterate over the for loop and create a thread for each iteration . sample code for i in range(o,50): i want to create 50 thread here which call the same function. how start and stop each thread after completion