Q:

how to write a program that interacts with the terminal

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

New to Communities?

Join the community