0

Python uses interpreter?

As in sololearn's Python course topic 'basic concepts ' says that python is on time runned by interpreter.No need to compile but in python we can both interperete and compile in its IDLE. If anyone thinks that i don't know about compiler and interpereter please tell me about that also

14th Jan 2018, 10:54 AM
Mayank
Mayank - avatar
5 Réponses
+ 1
Compiler converts user program to machine code and checks for syntactic error prior executing. implemented in C / C++. Interpreter Converts user program to machine code during run time. Meaning there is no way to check for errors unless you start running the program. Java on the other hand uses both compiler and interpreter. Java compiler checks for syntactic errors while the interpreter(Google JIT) Converts the compiled code into executable based on the machine architecture it is running on. It's a deep topic. python uses interpreter, the compiler feeling that you get while using IDLE is because IDLE is an IDE (Integrated Development Environment). Hope I made sense.
14th Jan 2018, 11:03 AM
Krishnatheja Vanka
Krishnatheja Vanka - avatar
0
Python is an interpreted language - it uses interpreter and needs no compiler.
14th Jan 2018, 10:56 AM
michal
0
it means compiler is created using C/C++ and interpreter using JAVA?
14th Jan 2018, 11:06 AM
Mayank
Mayank - avatar
0
Compilers are created using Lex and Yacc. I just mentioned C /C++ and Java to illustrate where compiler is used and interpreter is used.
14th Jan 2018, 11:08 AM
Krishnatheja Vanka
Krishnatheja Vanka - avatar
0
Oh thanks now I had understood
14th Jan 2018, 11:10 AM
Mayank
Mayank - avatar