Write a function that refuses a bad value with an error of the right kind. The checker calls it with good and bad values and reads the kind of error.
Have you tried it?
Do the tasks in the editor first, and run the checker after each one. Its hints help when a check fails. When you are ready, compare your code with this solution.
Log in to join the discussion.
Loading…