Question: Question 2 Use the dropdown to select which method best represention the description. [Select] 4 pts will return a substring of a string variable

Question 2 Use the dropdown to select which method best represention the description. [Select] 4 pts willThe following function will read lines of records from a file object fObj. Each record contains student's

Question 2 Use the dropdown to select which method best represention the description. [Select] 4 pts will return a substring of a string variable sObj. [Select] return -1 is the string 'come' is not contained in sObj [Select] [Select] will will return a list object containing the words in sobj using a space as the delimiter. will return a string all leading spaces and newline characters in sObj The following function will read lines of records from a file object fObj. Each record contains student's name (last name only) and the student's gpa. The function will accept as an argument the fObj, create two list objects (namesList and gpa List), calculate and return the average gpa. def calc_avg_gpa(fObj): namesList = [] gpaList = [] for record in fObj: record= newline character recList = of items in a record #remove the #add the name of student to names Lis, no assignment operator return #create of list #add the float value of gpa of student to gpaList, no assignment operator calculate the average gpa #use an expression to

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Based on the information provided it looks like you are looking for answers to fill in the blanks in the first image and to complete a Python function ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!