One shouldn't have to ask that question of an ... programmer. He would comment his code to describe what it is that the code is doing.
Since instructors don't require students to comment their code, that is what you get.