►
Run
def f(): print('Thread function\n') return t = threading.Thread(target=f)
Output