How do I use Linux commands in a Python script?

I am running a Python script in a cluster, and I want to execute Linux commands through my python script when I run the script, opposed to manually typing each line of Linux code in the terminal, How would I do this?

I created a document on how to do this: Research/Using Linux commands in a python script.pdf at main · Server246/Research · GitHub