Module 2 · Line Tracking
Lesson 3 · Bounce Driving — Knowledge ChecksAnswer key
When an if/else runs, how many of the two blocks execute?
An if/else always runs exactly one branch: the if-block when the condition is True, the else-block when it's False.
What does `while True:` do?
The condition True is always true, so the loop repeats endlessly — the standard pattern for continuous robot control.
left is 0.2 and right is 0.9 (threshold 0.5). Is `left > threshold or right > threshold` True?
or is true when at least one side is true. Right (0.9 > 0.5) is true, so the whole condition is true — bounce.