Not Printing the Function Output

I worked up the function exactly as you did Sir, But my function did not yield the same result.

I have no output at all

import multiprocessing as mp
def cube(num):
print(“Cube is {}”.format(numnumnum))
def square(num):
print(“Square is {}”.format(num*num))
p1 = mp.Process(target = cube, args = (3,))
p2 = mp.Process(target = square, args = (4,))
p1.start()
p2.start()
p1.join()
p2.join()
print(“Done”)

I tested your code and it is working just fine.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.