When I press CTRL+C to interrupt program it quits only main thread and new created still working. How to terminate all threads?
import threading, time
def loop():
while True:
print("maked thread")
time.sleep(1)
t = threading.Thread(target = loop)
t.start()
while True:
print("loop")
time.sleep(1)