If anyone knows, explain to me
2 Answers
Best answer
Compiler translates the entire code into machine language all at once before running it (like C++). An interpreter translates and runs the code line-by-line (like Python)
Compiler is like a book translator. Compiler takes your entire program, translates it all at once.
An interpreter translates and runs your code line by line. It executes instantly but runs slower.
An interpreter translates and runs your code line by line. It executes instantly but runs slower.