6 lines447 B

Exercises: lesson 4

  1. Time yourself: rewrite the example from memory in 10 minutes, then diff it against the original.
  2. Combine this lesson with the previous one: use something from both in a small program of your own.
  3. What happens with an empty input? Change the code so it handles that case with a clear message.
  4. Break the example on purpose: delete a bracket or misspell a name. Read the error message. Which line does it point to?