Reputation: 97
I am a Python beginner (using 2.7) and want to know if there is a way for a program that I have written to run other programs.
Basically, I want to build a program that evaluates other programs.
Upvotes: 0
Views: 99
Reputation: 97591
Check out the subprocess module. One of the examples given there:
>>> subprocess.check_output(["echo", "Hello World!"])
'Hello World!\n'
That should be pretty much all you need
Upvotes: 4