import subprocess
subprocess.call('gcc a.c', shell=True)
subprocess.call('./a.out', shell=True)
I am executing this statement to compile a ".c" file. I got the output in the backend.
But how can I get the output of that C program in a python text area (I'm using tkinter, python 2.7 )?
Another problem is, I'm not able to scan input data but only able to compile programs which will not take input data.