I have an executable example.exe. This executable's behaviour is as follows:
1.Waits for input from user
2.Performs some operations, based on input
3.goto 1
How can I use subprocess or a similar module to interact with executable?
I wish to run the process, insert input, receive output, then insert additional inputs based on the output received.