What names are displayed when the following code is executed…

What names are displayed when the following code is executed? Assume the five lines in custs.txt file contain the following names: Smith, Collins, Peterson, Jackson, Green. cust_file = open(‘custs.txt’, ‘r’)cust_names = cust_file.readlines()cust_file.close()idx = len(cust_names) – 1while idx >= 0:  print(cust_names[idx].rstrip(‘\n’))  idx -= 2

Assuming that ages dictionary contains children names Aaron,…

Assuming that ages dictionary contains children names Aaron, Agnes and Abigal as keys, along with values 6, 3 and 1 as corresponding ages, what will be the result of the following code? total = 0 for k in ages:   total += ages[k] ages[‘Annie’] = 2 print(total/len(ages))

17.  A 48-year-old female client presents to the clinic with…

17.  A 48-year-old female client presents to the clinic with concerns about her menstrual cycle. She tells the nurse,”I haven’t had a period in 4 months, and before that they were really irregular. I’m worried something might be wrong.” Which response by the nurse is most appropriate?

What will be displayed when the following program segment is…

What will be displayed when the following program segment is executed by calling main? Assume the five rows of data.txt file contain the following entries: 3, 2, 5, 1, 4? def main():   my_nums = fill_list()   result = sum_list(my_nums)   print(result) def fill_list():   dat_file = open(‘data.txt’, ‘r’)   my_lst = dat_file.readlines()   dat_file.close()   for i in range(len(my_lst)):     my_lst[i] = int(my_lst[i])   return my_lst def sum_list(nums):   total = 0   for i in range(0, len(nums), 2):     total += nums[i]   return total