Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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
Step: 1
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 ...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started