New course! Every coder should learn Generative AI!
Try a free lesson+ 2
The subprocess module allows you to spawn new processes, connect to their input/output/error pipes, and obtain their return codes. This module intends to replace several older modules and functions.
https://docs.python.org/3/library/subprocess.html