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.