Only show hint when the user has attempted an answer.

This commit adds a new function `answered?[]` that is then used to limit
when a hint showing the expected vs. actual result is given.