7 lines529 B

Exercises: lesson 6

  1. Look up one function or command the example uses in the official documentation. Note one option you didn't know.
  2. Add a comment above each block explaining what it does, in your own words.
  3. Break the example on purpose: delete a bracket or misspell a name. Read the error message. Which line does it point to?
  4. Add a check that prints a warning when a result looks wrong (negative, empty, too big).
  5. Explain the example to someone who hasn't taken the course. Which part was hardest to explain?