This is a free preview. Enrol on the course to save your progress and open every lesson.

Lesson 1 of 32 · 10 min

What Python is — and why learn it

Easy to read, powerful to use

Python is a programming language created to be simple and readable. Compare a line of Python with what it does:

print("Hello, world!")

Output:

Hello, world!

That's a complete program. No setup, no extra symbols — just say what you want.

What people build with Python

AreaExamples
Data and reportsSales analysis, rosters, spreadsheets, charts (see Python for Data)
Websites and appsThe back end of sites like Instagram and Spotify (see Full-Stack Python)
AutomationRenaming hundreds of files, sending reports, tidying data
AI and scienceMachine learning, research, robotics
Games and funQuiz games, simple games, art

Python or JavaScript?

Both are great first languages. JavaScript runs in web browsers and makes web pages interactive. Python is often used for data, automation and servers. The core ideas — variables, if statements, loops, functions — are the same in both. Learn one well and the second is much easier.

Get your starter files

Download the attached Python Foundations starter files and unzip them. They include a practice notebook with every exercise, solutions, and the two projects. You'll set up Google Colab in the next lesson.

Try it

Write down one boring, repetitive task in your life or a job you'd like — something a program could do for you. Keep it in mind as you learn.

Downloads

2 files to download once you enrol.