What does logic error mean?

The program runs without complaint but does the wrong thing, because the instructions do not say what the programmer meant. The hardest kind to find, because nothing reports it.

Also written as: logic errors

In a lesson

No red text, and it even printed "arrived". But the robot went the wrong way. Python did exactly what the program said; the program said the wrong thing. The only way to find a logic error is to test: know what should happen, watch what does, and compare. Watching the robot is part of debugging.

Learn it

Used in

Do the lesson in the simulator

All glossary terms