The Hermit Hermit's Free Library  Brain Teasers

One in a series of exercises that demonstrate how to accomplish real-world computing tasks using time- and work-saving techniques.

Brain Teaser #6: Data Clean-Up and Count

Task

You are given a list of names. Some of the names include middle initials while others do not.

Remove all middle initials so that only first names remain and generate a tally of all the names as well as how many times the names "Barbara" and "Wanda" appear in the list.

Time

3 minutes

Data

Data File