Learn Ruby
Assessments
18.2
Assessment

Print names in a consistent manner

We have an array with names of the people. The names are in an inconsistent manner. Write program so that the names are printed as shown below.

1. James Baldwin
2. Mary Longworth
3. Sarah Huckberry
4. Jonas Dukakis