Consider the following function: def numberToGrade(x) :   re…

Consider the following function: def numberToGrade(x) :   return “X” This function will eventually be rewritten so that it returns the letter grade associated withxgrade points. However, at the moment it is incomplete, and always returns the letterXas a placeholder. In its current form, this function is referred to as a:

Consider the following code segment: done = Falsewhile not d…

Consider the following code segment: done = Falsewhile not done :   try :      filename = input(“Enter the file name: “)      inFile = open(filename, “r”)      ____________________   except IOError :      print(“Error: File not found.”) It is supposed to keep on prompting the user for file names until the user provides the name of a file that can be opened successfully. What line of code should be placed in the blank to achieve this goal?