Is Python an interpreted language?

Python is usually called an interpreted language, but the full story has two steps. First, Python compiles your source code into a lower-level form called bytecode. Then the Python Virtual Machine (PVM) runs that bytecode one instruction at a time.

You do not need to run a separate compile command. Python does both steps for you when you run the file. The bytecode is often saved in a __pycache__ folder so the next run can start faster.

python hello.py

That one command compiles and runs the program. Because of this, you can change a file and run it again straight away, which is why Python feels quick for learning and testing. Read the next question to understand what an interpreted language is.


Learn more about the similar topics:
Tutorials
Python Introduction
Python Syntax
Python Comments
Python input() Function
Exercises & Assignments
No Content Found.
Interview Questions & Answers
What is Python?
Is Python an interpreted language?
What is an interpreted language?
What is PEP 8?
What are the key features of Python?
Is Python case-sensitive?
What is the use of the input() function in Python?