Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Python by (4k points)

Now coming to Python, I am bit confused about this. Everywhere you learn that Python is an interpreted language, but it's interpreted to some intermediate code (like byte-code or IL) and not to the machine code. So which program then executes the IM code? Please help me understand how a Python script is handled and run.

1 Answer

0 votes
by (8.7k points)

 First of all, let us understand why the language is distinguished as compiled or interpreted.

 The implementation of different languages is the root cause of this differentiation as the implementation of language can be compiled or interpreted not the language.

Now let’s  discuss Python,

So the python is first compiled when we execute the code and this will generated byte code which will be converted by PVM(python virtual Machine) and then it get interpreted, so we can say that python is both compiled and interpreted.

To know more about python, check out the python certification course.

Related questions

0 votes
1 answer
asked Feb 11, 2021 in Python by Rekha (2.2k points)
0 votes
0 answers
asked Dec 29, 2020 in Python by sadha (120 points)
0 votes
1 answer
0 votes
1 answer
asked May 9, 2021 in Java by sheela_singh (9.5k points)

Browse Categories

...