So i'm learning python and in one of the courses they were talking about threading this is basically the same code he was using and it was running concurrently in the course but when I run it it runs consecutively and I don't know why?
import threading
import time
threads = []
def printtest():
print("myname is test")
time.sleep(3)
print("done")
for i in range(5):
th = threading.Thread(target=printtest())
th.start()
threads.append(th)
for th in threads:
th.join()