+ 5

How can we say that python is an interpretor language?

We know that python is an functional language so how we can compare between function and interpretor language.

24th Apr 2017, 4:26 PM
Aryman Gautam
Aryman Gautam - avatar
2 odpowiedzi
+ 4
I thing u have confused programming paradigm with program execution. They are different things(of the same language). Python is interpreted language. it supports Funtional and OOP(there are more) programing paradigms. Programing paradigm (classification based on language features) - Functional, Object Oriented Programming (OOP),etc Execution - Interpreting, Compiling, etc
24th Apr 2017, 4:55 PM
Eranga
Eranga - avatar
+ 4
What i know i that the main difference between an interpretor language and a language that uses compilations is that the interpretor language is a program that reads you code and analyse it while running, so each time you run you python file, you open a program : the interpretor that will read the code. Notice that the interpretor that reads the code is a program read by the computer himself. When you use a language with compilation like c++ for example, you code is not executable you have to use an other program : the compiler to compile your code and to create an application, a program that can be executed by the computer himself. So it's obvious that c++ programs wil be faster than python's ones because in python you read and you interpret the script using a program which is read by the computer, on the other side, c++ program are directly read by tge computer.
24th Apr 2017, 4:57 PM
Glozi30
Glozi30 - avatar