+ 3
What is difference between execution and compile ??
"There is No need of compiling python program before executing it " means ??
1 Odpowiedź
+ 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