import _thread ,time
def child():
time.sleep(2)
print("hello from world")
def parent():
threadvalue=_thread.start_new_thread(child,())
print(threadvalue)
print("Main process is finished")
parent()

output
import _thread ,time
def child():
time.sleep(2)
print("hello from world")
def parent():
threadvalue=_thread.start_new_thread(child,())
print(threadvalue)
print("Main process is finished")
parent()