I used the below code:
import time
def create_square(num):
time.sleep(5)
return num * num
create_square(12)
create_square(12)
create_square(12)
In task manager, why does it show 4 threads ?
It shows how many threads your interpreter has, not how many threads are there in your code.