Sending Commands to Python Program
Wednesday, 22 September 2010, 1,164
>>> import sys,os
>>> def doit(command):
os.system(command)
print("Executed")
>>> doit('print("Hello Python!")')
Executed
>>>