8 months ago
6 lines370 B
Exercises: lesson 5
- Make the example ask for its input instead of using a fixed value.
- 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.
- Find one thing in
commands.shyou could name better and rename it everywhere.