anu bhaisab
anu bhaisab

Reputation: 97

program running programs in python

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

Answers (1)

Eric
Eric

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

Related Questions