6 lines389 B

Exercises: lesson 5

  1. Add a comment above each block explaining what it does, in your own words.
  2. What happens with an empty input? Change the code so it handles that case with a clear message.
  3. Explain the example to someone who hasn't taken the course. Which part was hardest to explain?
  4. Add a check that prints a warning when a result looks wrong (negative, empty, too big).