Question: Given five Groups, the ages for the groups are as follows: Group1 = 88, 90,74 Group 2 = 70, 88, 90 Group 3 = 91,
Given five Groups, the ages for the groups are as follows: Group1 = 88, 90,74 Group 2 = 70, 88, 90 Group 3 = 91, 85, 94 Group4 = 86, 90, 98 Group5 = 81, 95.92 a. Create a numpy array named ages for the Groups' scores. b. Given a list defined as female = [False, True False, True. True) return the records for female groups only C. Change all ages greater than 90 to 100 in the array ages. d. Write a function that will return the sum of even ages in the modified array ages
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
