from threading import Thread
def just_print():
with open('numbers.txt', 'w') as f:
for i in range(10_000):
f.write(str(i) + '\n')
print('finished just_print')
t1 = Thread(target=just_print)
t1.daemon = True
t1.start()
for i in range(10):
print(i*2)