Python Engine
What is Python Engine?
Python Engine Execute the code and generate the output.
Working of Python Engine:
From the above diagram we can understand that Python Engine takes the source code by the user just by clicking on Run button. Then this Python Engine checks the code internally if it is success then it gives the output. Otherwise it throws an error.
-> Here, comments are ignored by Python Engine.
-> It can execute any instructions given by the user.
-> In this Python Engine there are some reserved words such as IF, WHILE LOOP etc.
Get Srivaishnavi’s stories in your inbox
Join Medium for free to get updates from this writer.
Example:
var1=10
var2=10
var3=100
var1=20
Here, var1=10 user will click on Run button then:
Step-1: Python Engine will check in the RAM then if it is NO,
a) then Python Engine creates a value called 10.
b) Stores the value 10.
Step-2: Again Python engine check in the memory :
-> if there is no name to the value then it gives temporary name called var1.
Step-3: In RAM if there is value then it directly jumps to Step-2.
-> if there is already assigned temp name but the user gives the other name to the same value then the temp name will be removed and give to the new reference.
It generates the output as:
Var1=20,
Var2=10,
Var3=100.



