4 months ago
7 lines559 B
Exercises: lesson 6
- Time yourself: rewrite the example from memory in 10 minutes, then diff it against the original.
- Break the example on purpose: delete a bracket or misspell a name. Read the error message. Which line does it point to?
- Rewrite the main part so it runs twice with two different inputs, without copying the code.
- Look up one function or command the example uses in the official documentation. Note one option you didn't know.
- Combine this lesson with the previous one: use something from both in a small program of your own.