Dear users of the community after starting two processes simultaneously, how can I make Python 3 wait for the second process to finish and then finish the first one, I tried with time.sleep () But this only gives me a certain time, the idea is that the code is able to determine when the second process is complete to finish the first Eg: if I execute Word and then Paint, that Word closes once Paint (as a second process) is open Thank you in advance for your help.