import threading
import time
def thread_function(s, n):
print(s)
print(n)
for i in range(4):
print('thread_function')
time.sleep(2)
print('END - thread_function(s, n)')
thrd = threading.Thread(target=thread_function, args=('abc', 345))
thrd.start()
for i in range(4):
print('python')
time.sleep(1)
thrd.join()
print('END')
'''
run:
abc
python
345
thread_function
python
python
thread_function
python
thread_function
thread_function
END - thread_function(s, n)
END
'''