title: Can we use C code in Python?
body: <p>I know that Python provides an API so you can call Python interpreter in C code, but what I want is the opposite.</p>
  
  <p>My program needs to use some C API, so the code must be written in C. But I also want to package the program with Python. Which means I want to invoke those C function or executables in Python. Is that possible?</p>
  
  <p>If I want the C code to be a library, which means I use it with <code>#include</code> and linkage of the <code>*.o</code> likely in Python, how to do it? Is that possible? If I write the C code into executable, which means it becomes a command, can I invoke it in Python directly?</p>
  
  <p>Also, I heard that Python code can be compiled, does that mean we can execute the code without the source file? Are the output files binary files? Does it improve performance?</p>