MemotivaPython language fundamentals

What is the difference between an interpreter and a compiler?

Python language fundamentals

Audio flashcard · 0:17

Nortren·

What is the difference between an interpreter and a compiler?

0:17

A compiler translates the entire source code into machine code before execution, producing a standalone executable. An interpreter reads and executes source code line by line at runtime. Python uses a hybrid model: it compiles to bytecode first, then interprets the bytecode in a virtual machine.
docs.python.org