subject

Project-1 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: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 12:10
1. declare a constant named cents_per_pound and initialize with 25. 2. get the shipping weight from user input storing the weight into shipweightpounds. 3. using flat_fee_cents and cents_per_pound constants, assign shipcostcents with the cost of shipping a package weighing shipweightpounds.
Answers: 2
question
Computers and Technology, 22.06.2019 17:30
Rachel completed typing an official document with a word processing program. she wants to make sure that her document has no typographical errors. she also wants all headings to have the same font. which features in a word processing program should she use? rachel should use the feature in a word processing program to find typographical errors. she should apply to have uniform headings.
Answers: 1
question
Computers and Technology, 23.06.2019 08:00
The managing director of a company sends a christmas greeting to all his employees through the company email. which type of network does he use? he uses an .
Answers: 3
question
Computers and Technology, 23.06.2019 09:00
Which best describes the role or restriction enzymes in the analysis of edna a. to break dna into fragments that vary in size so they can be sorted and analyzed b. to amplify small amounts of dna and generate large amounts of dna for analysis c. to purify samples of dna obtained from the environment so they can be analyzed d. to sort different sizes of dna fragments into a banding pattern that can be analyzed
Answers: 1
You know the right answer?
Project-1 write a class called person that has two data members - the person's name and age. it shou...
Questions
question
Mathematics, 17.09.2021 15:10
question
Mathematics, 17.09.2021 15:10
question
Mathematics, 17.09.2021 15:10
question
Social Studies, 17.09.2021 15:10
question
Mathematics, 17.09.2021 15:10
Questions on the website: 13722363