from threading import Thread def fun1(): print("Working1") def fun2(): print("Working2") Thread(target=fun1).start() Thread(target=fun2).start()