How to call an external command?
By external command I am assuming something like Linux Command: I think you can use subprocess module of python, it has run() function which can be utilized for the same. subprocess.run('pwd')