8 lines595 B

Exercises: lesson 6

  1. Make the example ask for its input instead of using a fixed value.
  2. Add a comment above each block explaining what it does, in your own words.
  3. Run commands.sh and change one value. Write down what you expect, then run it again and compare.
  4. Time yourself: rewrite the example from memory in 10 minutes, then diff it against the original.
  5. Break the example on purpose: delete a bracket or misspell a name. Read the error message. Which line does it point to?
  6. What happens with an empty input? Change the code so it handles that case with a clear message.