Computers and Technology

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

answer
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 11:30, leapfroggiez
Auser is given read permission to a file stored on an ntfs-formatted volume. the file is then copied to a folder on the same ntfs-formatted volume where the user has been given full control permission for that folder. when the user logs on to the computer holding the file and accesses its new location via a drive letter, what is the user's effective permission to the file? a. read b. full control c. no access d. modify e. none of the above
Answers: 1
image
Computers and Technology, 23.06.2019 15:00, lopez7512
What is the total resistance in a circuit that contains three 60 ohm resistors connected in a series? a. 20 ohms b. 120 ohms c. 60 ohms d. 180 ohms
Answers: 2
image
Computers and Technology, 23.06.2019 21:40, gaby06
Simon says is a memory game where "simon" outputs a sequence of 10 characters (r, g, b, y) and the user must repeat the sequence. create a for loop that compares the two strings. for each match, add one point to user_score. upon a mismatch, end the game. sample output with inputs: 'rrgbryybgy' 'rrgbbrybgy'
Answers: 3
image
Computers and Technology, 23.06.2019 23:30, econsta3
Perform an online search about the booting process of a computer and list all the steps
Answers: 2
Do you know the correct answer?
Project-1 write a class called person that has two data members - the person's name and age. it shou...

Questions in other subjects:

Konu
Mathematics, 29.01.2021 03:00
Konu
Mathematics, 29.01.2021 03:00
Konu
Mathematics, 29.01.2021 03:00