Allow the user to enter several texts and have them analyzed. The program is terminated by entering an empty text:
$ wordcount
Enter text: Mary had a little lamb
Number of words: 4, unique: 4; average word length: 4.25 characters
Enter text: a bb ccc dddd
Number of words: 4, unique: 4; average word length: 2.5 characters
Enter text:
$
You are currently opening an agility kata. Have you already worked on the previous part?
Please only open this exercise if you have already completed the previous parts. The idea of the Agility Katas is to implement additional requirements on existing code. If you look at all the requirements first, the effect of the Agility Katas will be lost.