27. How to run shell commands in modern Python

Опубликовано: 31 Май 2026
на канале: Docendo Disco
9,333
196

Since Python3.7 there is a good enough syntax to run shell commands in a uniform way. I propose here to use two parameters to make the procedure equivalent to the well known back quote syntax available in other scripting languages. This procedure is extremely useful to know when programming for Linux and Unix based system.