Module 1 · Introduction to Programming · Lesson 7 of 7
Compilation vs interpretation: pros & cons
Neither approach is simply “better.” Each buys an advantage by accepting a cost somewhere else. Here's how they line up on the things that matter most in day-to-day programming.
Compiling shines when speed and distribution matter: the program is already machine code, so it runs fast, and you can ship a single file without the source. The price is flexibility — the binary is built for one kind of machine, and every change means compiling again.
Interpreting trades raw speed for convenience: the same code runs anywhere the interpreter exists, and you can change a line and run it instantly. That fast, forgiving feedback loop is a big reason Python is such a friendly place to start — and exactly what the rest of this course builds on.