from threading import Thread
from time import sleep
for i in range(4):
print(type(i))
sleep(1)
print(i)
def f(i):
if int(i) == 1:
print('i=',i)
elif i == 2:
print('i=',i)
elif i == 3:
print('i=', i)
t = Thread(target=f(i))
t.start()