Module 1 · Learning to Drive
Lesson 11 · Python Final Project — Knowledge ChecksAnswer key
You're about to build a 60-block-worth Python program. What's the smartest way to start?
Build and test in small pieces (unit testing), then integrate. It's far easier to find a bug in one small function than in a giant program.
Your program runs but the robot behaves differently each time on the same code. Most likely cause?
If the code is unchanged and the result varies, it's usually physics — grippier surface, fresher battery, or wheel slip — not a code bug.