7 lines475 B

Exercises: lesson 7

  1. Rewrite the main part so it runs twice with two different inputs, without copying the code.
  2. Add a comment above each block explaining what it does, in your own words.
  3. Find one thing in main.go you could name better and rename it everywhere.
  4. Combine this lesson with the previous one: use something from both in a small program of your own.
  5. Explain the example to someone who hasn't taken the course. Which part was hardest to explain?