I am working on a super simple socket program and I have code for the client and code for the server. How do I run both these .py files at the same time to see if they work ?
There are few simple ways to do it: Write a shell file with `. sh` extension and write sequence of python files you want to run. Do a `chmod a+x example.sh` and run `./example.sh` this will run you sequence of python files — this will work on Mac and Linux.
Yes, you can run multiple python scripts at once and In python, we use multi-threading to run multiple works simultaneously.
Shift + Enter takes you to next line without executing the current line. Save this answer.
You can run multiple instances of IDLE/Python shell at the same time. So open IDLE and run the server code and then open up IDLE again, which will start a separate instance and then run your client code.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With