Back to the lesson libraryMECHANISM · 11 MIN
M02.2 CONNECT THE MECHANISM

Describe a computation so someone else can follow it

"Count the heavy parcels" sounds simple until someone asks whether 3 lb counts. Trace a real loop step by step, run it, and find the one test that catches the bug.

LESSON OVERVIEW11 min lesson

Lesson overview

"Count the heavy parcels" sounds simple until someone asks whether 3 lb counts. Trace a real loop step by step, run it, and find the one test that catches the bug.

What you’ll explore

  • Trace a loop’s changing state and choose test cases that distinguish an intended condition from an incorrect implementation.
GO TO THE SOURCE

Original explanations, connected to the research.

Python tutorial: conditions and loops
Suggest a correction

A precise note can make an explanation better.

Choose the scene and describe what needs attention. Download a feedback file to share through a channel you already use. This page does not send feedback or connect you with a reviewer.

The file includes this note, the scene title, and lesson metadata. Your saved progress and quiz responses are excluded. Download before leaving or reloading to keep your note.