What is Python Interpreter ?

Ayhan Daşyuvarlar
3 min readDec 23, 2021

--

What is interpreter ?

An interpreter is a program that reads the source code from the command and converts it to the instruction set of the machine it is working on.

What is Compiler ?

A compiler is a program that translates a source code written in a high-level programming language into another target language or machine language that the computer/processor can understand.

Example ; Pycharm , Jupyter Notebook , Visual Studio Code ,Visual Studio.

What is Byte Code ?

Generates bytecodes that allow the codes in py files to interact with the shell, and these codes are run in the virtual machine. Bytecode is not machine code, it is virtual machine code.

What is Visual Machine ?

Python, as stated earlier, is an interpretative language. Although it contains all the ease of use of interpreted languages, it also has some features of compiled languages. For example, the programming code you write is first brought into a format called byte code, and then the intermediate compiled code is interpreted. If you have done the intermediate compilation process before, the intermediate compiled code is interpreted without ever reading the code. This feature is similar to Java.

Python actually works like a Virtual Machine (VM). In this respect, the code you write can run on all operating systems and hardware architectures, as long as the operating system-specific features are not used. In order for python programs to run on a computer, you will need a python interpreter on that computer.

Python is one of the pre-built languages ​​for .NET. In this respect, the compiled program can run without a Python interpreter on a system with a .NET platform. If you are working in Microsoft environment and your job is GUI (Graphical User Interface) programming, Sharp Develop will be for you. You will also meet with Microsoft Studio, you can prepare your GUI program in two minutes without any hassle. Moreover, since the programs are compiled for .NET, you will not need to distribute the source code while distributing the program, and those who will use the program will not need the Python interpreter. In this respect, you can think of the way Python works like C#.

Library Modules
These are libraries in Python, for example;
It is passed to the compiler as import numpy.
Important Python Libraries
matplotlib. Matplotlib assists in data analysis and is a numerical plotting library. …
pandas As we said earlier, Pandas is a must for data science. …
want…
soap opera. …
SQLAlchemy. …
NiceSoup. …
piglet …
SciPy.

What is input in Python?
Image result for what is python input
In Python, we use a function called input() to get any data from the user and save the programs we write from being one-sided.

What is Output ?

First to your compiler
You add the library. next stage
If it is, you write the data you want and then run the compiler.

The output should be;

Summary ; We learned how Python works. What is a compiler? Libraries and how they work.

Follow me for more; https://www.ayhandasyuvarlar.com/

--

--