Interpreter
An interpreter is a program that reads and executes source code directly, line by line, without compiling it into a separate machine-code file first.
General Programming
Languages like Python, JavaScript, and Ruby are usually run by an interpreter. This makes them quick to test and very flexible, but typically slower than fully compiled code.
Because execution happens line by line, some errors only appear when the interpreter actually reaches the faulty line at runtime.
Examples
Python
# Run directly: python hello.py
print("Hello")
print(1 / 0)Output:
Hello
ZeroDivisionError: division by zero