georgebracher.com

Video 007 · 3 to 4 Nov 2026

Can AI teach me Python?

My syntax is rusty, because AI writes all my code. So before a long flight I got AI to teach me instead: four courses, 535 steps, all running offline on my laptop.

The rule was that it checks my work and never does it. I type, it runs my code and tells me what's wrong.

55steps done on the trip
535steps across 4 courses
7wrong tries before I asked for the answer
4more wrong tries after seeing it

How to make AI teach you Python

  1. Make it check your work, not do it. Every code step runs what you typed and compares the output with what the task asked for. If it's wrong, it shows the two side by side and says where they first differ.
  2. Small steps. About a dozen a lesson: the 41 lessons run from 8 to 23 steps, 12 in the middle.
  3. Hints before answers. Every code step has two hints, then the answer, and the answer tells you to type it out yourself.
  4. Set it in your own life. Mine were boarding cards, seat numbers and fuel left in the tank.

The f-string that beat me

Lesson 4, Working with text, step 12: a boarding card. It wanted this, built from three variables:

Passenger: Ada (3 letters)
Seat: 14A
It's 720 minutes to landing

Seven wrong tries and two hints, then I asked for the answer, and I still got it wrong four more times. Eight minutes in all. The fix:

print(f"Passenger: {name} ({len(name)} letters)")
print(f"Seat: {seat}")
print(f"It's {hours * 60} minutes to landing")

The f goes outside the quotes. The curly brackets go inside, and anything in them gets worked out, even hours * 60. And "It's" has an apostrophe, so the text needs double quotes.

Was it any good?

Really good. Over the trip I ran 60 checks, passed 39, asked for 10 hints and looked at 5 answers, and finished 55 steps: the first four lessons and most of the fifth. That's one learner, me, so it's not a study.

Try the courses

Three of the four courses now run in your browser, with the same checker: Python from zero, Read the code your AI writes, and SQL from zero. Nothing to install and no account, and your place is saved in your browser. Terminal and Git comes later.

Start the free courses The numbers and where the code is Watch it on Instagram Watch it on TikTok

More videos