►
Run
import threading def f(): print('Thread function\n') return for i in range(3): t = threading.Thread(target=f) t.start()
Output