2 functions at a time py code example
Example: 2 functions at a time py
from threading import Thread
def fun1():
print("Working1")
def fun2():
print("Working2")
Thread(target=fun1).start()
Thread(target=fun2).start()
from threading import Thread
def fun1():
print("Working1")
def fun2():
print("Working2")
Thread(target=fun1).start()
Thread(target=fun2).start()