Question: Question 38 Verify that you have made your functions more robust to erroneous input/data. (To do this, use try and except.) The time allocated for

Question 38 Verify that you have made your functions more robust to erroneous input/data. (To do this, use try and except.) The time allocated for this question is 25 minutes. At the end of this period, please go to the next question. Otherwise, you may have trouble with the time for the remaining questions. This question is 50 points. I!! Be careful about the indentation. If your code has a syntax error, you will not be graded. You are going to design a program that generates "friends.txt" file. This file consists of the names of your friends that you will give gifts for Christmas. Create a list for your friends and write the names of them. Write each value of the list into the file. After writing the names to the file, call the function findMyFriends StartWithMO) function. This function works in the file and returns a list of your friends whose names start with "M". Please check the following sample output. listOfFriends = ["Mary". "John", "Mehmet", "Gamze", "Johnattan", "Gracy". "Micheal"l friends.txt Mary John Mehmet Gamze Johnattan Gracy Micheal Sample Output LIST Mary Mehmet Micheal Your answer: Font Size - BIU A.A. X, X -E X ? X
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
