Compiled vs Interpreted Languages

+2 votes
What are compiled language and interpreted languages and what is the difference between the two?
Jun 14, 2018 in Python by nightshade
• 870 points
247 views

2 answers to this question.

+2 votes
Best answer

Compiled languages are written in a code that can be executed directly on a computer's processor. A compiler is a special program that processes statements written in a particular programming language and turns them into machine language or "code" that a computer's processor uses.

An interpreted language is any programming language that isn't already in "machine code" prior to runtime. Unlike compiled languages , an interpreted language's translation doesn't happen beforehand. Translation occurs at the same time as the program is being executed.

answered Dec 3, 2018 by allenvarna
• 520 points

selected Dec 4, 2018 by Omkar
@allenvarna thank you! Your answer gave me a new definition for complied and interpreted languages.
Hey @allenvarna. How are these two when it comes to execution time?
+1 vote
A compiled language is one where the program is expressed in the instructions of the target machine, whereas interpreted languages are executed by a platform-dependent software called the interpreter, which converts it to machine-readable code.

Python and Java are interpreted languages, whereas C is a compiled language.

Usually compiled languages are faster since they directly convert code to machine code, interpreted languages are platform-independent and code written in them are executed on the fly bypassing the compilation stage.
answered Jun 14, 2018 by Hamartia's Mask
• 1,580 points

Related Questions In Python

0 votes
1 answer

SKLearn NMF Vs Custom NMF

The choice of the optimizer has a ...READ MORE

answered May 9, 2018 in Python by charlie_brown
• 7,720 points
324 views
+1 vote
2 answers

Difference between append vs. extend list methods in Python

Python append() method adds an element to ...READ MORE

answered Aug 21 in Python by germyrinn
• 180 points
190 views
0 votes
1 answer

Difference between append vs. extend list methods in Python

append: Appends object at the end. x = ...READ MORE

answered Aug 8, 2018 in Python by bug_seeker
• 15,350 points
98 views
0 votes
1 answer

Python string formatting: % vs. .format

To answer your first question... .format just ...READ MORE

answered Aug 17, 2018 in Python by Priyaj
• 56,520 points
23 views
+1 vote
2 answers

Python string formatting: % vs. .format

Using Python format() function is what the ...READ MORE

answered Apr 11 in Python by Dasa Ravi
52 views
+7 votes
8 answers

Difference for string comparison in Python: 'is' vs. ==

If we use "==" means both variables ...READ MORE

answered Sep 3, 2018 in Python by Parul Raheja
474 views
+1 vote
2 answers

how can i count the items in a list?

Syntax :            list. count(value) Code: colors = ['red', 'green', ...READ MORE

answered Jul 6 in Python by Neha
• 330 points

edited Jul 8 by Kalgi 217 views
+4 votes
6 answers