Question: # please write this in python def report(xs): This list generates a report about the residents in an apartment in a way where each apartment
# please write this in python
def report(xs):
This list generates a report about the residents in an apartment in a way where each apartment number is followed by the names of everyone who lives in that apartment. What the program is tasked to do is that it should return the average number of people who live in an apartment along with the largest number of people who live in an apartment, in a list.
Ex,
report([100, Jill Johnson, Billy Ray Cyrus, 110, Shweta Agarwal, 120, Miguel Rosas, Elena Rosas, Mateo Rosas, 200, "Jason Chan", 210, "Rosalia Torres"])
#this should return [1.6, 3]
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
