I am trying to fiqure out a question in my preporation for a python quiz.
here is my question with a snippet of the csv file
“Read in names and numbers from the names and numbers.csv file and create a phone book with them. The phone book needs to be sorted by surname, with initials for the first and middle names and the number after it
Store the new version in a seperate file with one entry per line
Here is the csv file and what i am expeting
CSV file as image
Part of expected answer as image
Thankyou with regards to whoever helps