Which is better to use in a python automation script for following simple operations To create a zip file and copy it or rename it to a new location. Using python inbuilt functions or terminal commands through os.system modules is better?
The inbuilt Python modules/ stdlib wherever you can, subprocess (os.system) where you must.
Reasons: Portability, maintenance, code readability just to name a few.
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