python has compiler or interpreter code example

Example: is python interpreted or compiled

--Is Python interpreted or compiled?--

First, some definitions:
	-An interpreted language reads your code line by line,
    and executes them as they are read
    -A compiled language converts *all* of your code into
    another form first. Note, the other form does not have
    to be machine code! This could be bytecode too.

Python is both compiled and interpreted. Python actually
converts your code into bytecode first (for example, .pyc),
then interprets your code. You might hear people call
Python "interpreted", but you would know that they are not
completely correct.