![Duolingo leagues](https://cdn1.cdnme.se/5447227/9-3/22_64e61dfde087c31b3e70ff43.png)
![python code writer online python code writer online](https://i0.wp.com/windows8freeware.com/wp-content/uploads/2013/12/Code-Writer.jpg)
What is the difference between a python interpreter and a compiler? When using a Python interpreter, the programmer types in the command, the interpreter reads the command, evaluates it, prints the results, and then goes back to read the command. So how do we bridge the gap between what a human programmer writes and what the machine understands and thus executes? By using an interpreter. Imagine trying to memorize instructions as 1s and 0s! Machines only understand machine code or machine language, a language represented by strings of bits - 1s and 0s.Īs you can imagine, writing and reading a program as strings of 1s and 0s is extremely hard for human programmers.
![python code writer online python code writer online](https://brianaspinall.com/wp-content/uploads/2016/02/Screen-Shot-2016-02-11-at-7.57.28-AM.png)
However, while high-level languages are relatively easy to understand by humans, the same cannot be said for machines. Python is the most famous example of a high-level language.
![python code writer online python code writer online](https://tomaszkenig.pl/wp-content/uploads/2020/01/code-1084923_1280.png)
High-level languages are written closer to human language and allow programmers to focus on the command being written. However, to better understand this definition, we must explain what high-level and low-level languages are.Ĭomputer programmers write in high-level programming languages. An interpreter translates the command that you write out into code that the computer can understand. A python interpreter is a computer program that converts each high-level program statement into machine code.
![Duolingo leagues](https://cdn1.cdnme.se/5447227/9-3/22_64e61dfde087c31b3e70ff43.png)