subject

Write a class called person that has two data members - the person's name and age. it should have an init method that takes two values and uses them to initialize the data members. write a separate function (not part of the person class) called basic_stats that takes as a parameter a list of person objects and returns a tuple containing the mean, median, and mode of all the ages. to do this, import the statistics library and use its built-in mean, median and mode functions. your basic_stats function should return those three values as a tuple, in the order given above. for example, it could be used as follows: p1 = person("kyoungmin", 73) p2 = person("mercedes", 24) p3 = person("avanika", 48) p4 = person("marta", 24) person_list = [p1, p2, p3, p4] print(basic_stats(person_list)) # should print a tuple of three values the files must be named: std_dev. py

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 05:00
Jason works as an accountant in a department store. he needs to keep a daily record of all the invoices issued by the store. which file naming convention would him the most?
Answers: 2
question
Computers and Technology, 23.06.2019 18:30
The computers in the sales department did not have enough data storage capacity to contain all the information the department needed to store, and it was taking a long time for team members to access the data they needed. to fix the problem, the technician installed new, larger hard drives on all the computers.
Answers: 1
question
Computers and Technology, 24.06.2019 11:20
Colby works as a shipping clerk for a major package delivery service. some of his daily tasks include tracking shipments and entering orders. which aspect of the information technology cluster would he most likely be trained in? a.networkingb.databasesc.hardwared.software
Answers: 2
question
Computers and Technology, 24.06.2019 16:50
How many types of string types does python support?
Answers: 1
You know the right answer?
Write a class called person that has two data members - the person's name and age. it should have an...
Questions
question
Chemistry, 09.09.2021 06:30
question
English, 09.09.2021 06:40
question
Mathematics, 09.09.2021 06:40
Questions on the website: 13722360