What is difference between execution and compile ?? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

What is difference between execution and compile ??

"There is No need of compiling python program before executing it " means ??

27th Dec 2016, 10:24 AM
Digant Mamtora
Digant Mamtora - avatar
1 Answer
+ 2
there are two steps in executing a program, compilation phase and then execution phase. Compilation is required to detect syntax and semantic errors in a program. compiler is a translator that converts high level language into machine language so that it can be run on machine, because machine can't understand human readable language. basically program languages use two types of translator: compiler and interpreter. Compiler before executing a program generate executable machine code and then executes it. but Interpreter unlike compiler, do not generate any intermediate code, it directly executes program statements line by line. python supports interpreter so programs are executed directly
27th Dec 2016, 10:57 AM
Ravi Kumar
Ravi Kumar - avatar