QUESTION 1- LOAD THE FOLLOWING “STRING” TWO DIMENSIONAL ARRAY (15 POINTS)
Fill in the Blаnk. Fill in the missing lines оf the functiоn. Pleаse chоose the аnswer that best completes each blank. Function Requirements: The function, what, takes in a filename and calculates the average length of words starting with the letter "s" (both lowercase and uppercase) Test Case File: countThemAll.txt (Input File) Sally sells seashells by the seashoreThere are no words beginning with that letter on this line Test Case: >>> what("countThemAll.txt")The average length of words starting with 'S'/'s' in countThemAll.txt is 6.75 Code: def what(filename): with open(filename, "r") as infile: everything = infile.read() words = everything. numChars = 0 numWords = 0 for word in words: if == "s": numChars += numWords += if numWords > 0: average = print(f"The average length of words starting with 'S'/'s' in {filename} is {average}.") else: print(f"There are no words starting with 'S'/'s' in {filename}.")