Cómo escribir un programa que interactúe con el terminal

import os
os.system("cd") #cd is an example, you can write whatever there
Plain Piranha