IS PYTHON INTERPRETED LANGUAGE OR COMPILED LANGUAGE ??
There is a lot of debate across the world about whether Python is an interpreted language or a compiled language so in this blog let's clear out the confusion For this let us understand what is meant by the terms “interpreted” and “compiled” INTERPRETED LANGUAGE:- Interpreted languages are executed line by line by an interpreter, which translates high-level code into machine code during run time . This means that the source code is directly executed without a prior compilation step. Example:- Javascript, Ruby, R, PHP, Perl Let’s understand with Python code When you run this Python script the following steps are executed behind the scenes: 1. Source Code: You write the script in a file called example.py . 2. Execution: You run the script using the Python interpreter by typing python example.py in the terminal. 3. Interpretation: The Python interpreter reads the file, compiles it to bytecode, and then executes the bytecode line by line. 4. Outpu