What is the difference between compiler and interpreter ?
A compiler compiles (converts to abject) your whole program at once and gives you a list of all errors in the file. The interpreter will execute the one command you type immediately and will report the errors for that one line or execute if it was syntactically correct.
A compiler is what makes your code executable. The interpreter is the active console like cmd in Windows.