28.1k views
1 vote
What happens when you run a program in Python? ​

User Xahtep
by
4.6k points

2 Answers

2 votes

Answer:

Hello There!!

Step-by-step explanation:

It doesn't convert the code into a machine code instead it converts it to a byte code.The python virtual machine executes the byte codes.

hope this helps,have a great day!!

~Pinky~

User Borkovski
by
5.0k points
3 votes

Step-by-step explanation:

The python virtual machine executes the byte codes. The Python interpreter performs following tasks to execute a Python program : Step 1 : The interpreter reads a python code or instruction. Then it verifies that the instruction is well formatted, i.e. it checks the syntax of each line.

User Eliran Eliassy
by
4.4k points