Random quote – Exam behaviour

This was something my English teacher said. Or was it my math teacher? Anyway, he was talking about something and then branched off into something else. He talked about how to behave during an examination, and he said this:

You may look up for inspiration
Down in desperation
But you may not look left or right for information