Python Interpreter & Program Execution (पायथन इंटरप्रेटर एवं प्रोग्राम का निष्पादन) :-

Introduction to Python Interpreter (Python Interpreter का परिचय) :-
Python Interpreter एक विशेष प्रकार का Software Program है जो Python भाषा में लिखे गए Program को Line by Line (एक-एक पंक्ति) पढ़ता है, समझता है, उसे Bytecode में परिवर्तित करता है और फिर Python Virtual Machine (PVM) की सहायता से Execute (चलाता) है।
दूसरे शब्दों में, Python Interpreter वह माध्यम है जो Programmer द्वारा लिखे गए Python Code और Computer की Machine Language के बीच कार्य करता है।
Python में Program को पहले पूरा Compile नहीं किया जाता, बल्कि Interpreter Program को क्रमशः पढ़ते हुए Execute करता है। यही कारण है कि Python को Interpreted Language कहा जाता है।
English
A Python Interpreter is a special software program that reads Python code line by line, converts it into bytecode, and then executes it using the Python Virtual Machine (PVM).
In other words, the Python Interpreter acts as a bridge between the Python source code written by the programmer and the computer's machine language.
Unlike compiled languages, Python does not execute the entire source code directly after compilation. Instead, the interpreter processes and executes the program step by step. Therefore, Python is known as an Interpreted Language.
Program Execution (प्रोग्राम का निष्पादन) :-
Program Execution (प्रोग्राम का निष्पादन) वह प्रक्रिया है जिसमें Programmer द्वारा लिखे गए Python Program को Python Interpreter द्वारा पढ़ा जाता है, Bytecode में बदला जाता है, फिर Python Virtual Machine (PVM) द्वारा Execute किया जाता है और अंत में Output प्राप्त होता है।
अर्थात, Program को लिखने से लेकर Output प्राप्त होने तक की पूरी प्रक्रिया Program Execution कहलाती है।
Source Code → Bytecode → PVM → Machine Code → Output
English
Program Execution is the process in which a Python program written by the programmer is read by the Python Interpreter, converted into Bytecode, executed by the Python Virtual Machine (PVM), and finally produces the desired output.
In simple words, the complete process from writing a program to getting the output is called Program Execution.
Source Code → Bytecode → PVM → Machine Code → Output
Bytecode :-
Bytecode वह Intermediate Code (मध्यवर्ती कोड) है जिसे Python Interpreter, Python Source Code को पढ़ने के बाद बनाता है। यह Machine Language नहीं होता, बल्कि Source Code और Machine Code के बीच का एक विशेष Code होता है।
इसके बाद Python Virtual Machine (PVM) इसी Bytecode को Execute करती है और अंततः Computer उसे Machine Instructions के रूप में चलाता है।
Example:-
Source code:-
a = 10
b = 20
print(a + b)
bytecode:-
Python Virtual Machine (PVM) Python का Runtime Engine (रनटाइम इंजन) है, जो Python Interpreter द्वारा बनाए गए Bytecode को Execute (चलाता) है।
PVM स्वयं कोई Physical Machine (हार्डवेयर) नहीं है, बल्कि यह Python Interpreter का एक Software Component है।
सरल शब्दों में:
PVM वह Software है जो Bytecode को पढ़कर Computer से कार्य करवाता है।
Python Virtual Machine (PVM) is the runtime engine of Python that executes the bytecode generated by the Python Interpreter.
It is not a physical machine, but a software component of the Python Interpreter.
In simple words:
PVM is the software that reads bytecode and performs the execution of the program.