I have been working on a project to run terminal command with a python file, for example, I have a file called getWeight.py, it requires 2 parameters when executing it:
Here is what I run inside the terminal:
python3 getWeight.py param1 param2
I also have a file named automation.py, which will execute the command above, but it is inside a conditional:
while loop_while != 0:
    if loop_while == 1:
        //getWeight.py param1 param2
    if loop_while == 2:
        //getLed.py param1
    
    print("\nSelect your next option:")
    print("(1) - getWeight")
    print("(2) - getLed")
    print("(0) - Exit")
    loop_while = int(input('Option: '))
 
     
    