9 months ago
5 lines295 B
Exercises: lesson 3
- Rewrite the main part so it runs twice with two different inputs, without copying the code.
- What happens with an empty input? Change the code so it handles that case with a clear message.
- Add a comment above each block explaining what it does, in your own words.