[Exam style] Python is an interpreted language. Explain what this means and how interpreted languages differ from compiled languages.

An interpreted language uses a program called an interpreter to translate code written in the source language to a target language that the computer can understand and execute. Interpreters translate code line-by-line as they execute the commands, whereas compilers use a program called a compiler to translate the entire program to the target language before any computation of the source program occurs.

JR

Related Python Mentoring answers

All answers ▸

Write a simple number guessing game, give the user 3 tries to guess a number between 1 and 10


Generate an array of integers from 0 to 99 and split it into two smaller arrays. Each smaller array will contain half of the original.


Manually implement a function that finds the smallest value in a list of integers and print it.


When do we use a for-loop and when a while-loop?