Day 2 · Chapter · ~11m

Variables, Functions & Loops

Write your first Python code: variables, functions, string formatting, conditionals, and loops.

You've Seen Code. Now You'll Write It.

Everyone keeps telling you to learn Python. Your manager mentioned it. That developer on your team makes it look easy. But you've never actually written a line of code.

This week, that changes.

By Friday, you'll have written a function that takes input, makes a decision, and repeats — the three building blocks of every program ever written. You'll go from "what does print() do?" to writing real, working code.

Here's what's coming:

  • Day 3: Your first Python program (it's one line)
  • Day 4: Functions — making your code reusable
  • Day 5: f-strings — embedding data in text (like mail merge, but for code)
  • Day 6: If/else — making your code think
  • Day 7: Loops — making your code repeat

The surprising part? Python reads almost like English. When you see for customer in customers, you'll know exactly what it does.

Let's start.

Practice your skills

Sign up to write and run code in this lesson.

Already have an account? Sign in