Skip to main content

Unit 1 · What is Python?! · Lesson 4 of 57

Interpret-her?

I barely know her!

You may have noticed we used the word interpreter in the previous lesson. As you get further into coding, you'll notice the word compiler shows up too.

It is super duper duper duper important not to get these confused, because they're very different ways of running code.

Interpreted languages 🗣️

An interpreted language is translated into computer language in real time, as you run the code.

Think of it like having an actual translator standing right next to you.

Compiled languages 📄

A compiled language is translated into computer language before you run it.

Think of it like printing out a translated version of what you're going to say ahead of time.

So which one is better?

Both have their advantages and disadvantages. Compiled languages tend to run faster, while interpreted languages are usually quicker to write and test since you can just run your code right away.

CompiledInterpreted
CPython (omg that's this course!)
C++JavaScript
RustLua

💡 It's very important to know the difference as you learn more programming languages!

Knowledge check

A few questions on what the lesson covered. Create a free account to do this part.

Do this lesson for real

With a free account you get the terminals, challenges and checks that go with the lessons in Intro to Python, and your progress is saved as you go. CyberAcad is a 501(c)(3) nonprofit, so there is nothing to pay.