subject

Write a function called proportion_of_education which returns the proportion of children in the dataset who had a mother with the education levels equal to less than high school (<12), high school (12), more than high school but not a college graduate >12) and college degree. This function should return a dictionary in the form of (use the correct numbers, do not round numbers): {"less than high school":0.2, "high school":0.4, "more than high school but not college":0.2, "college":0.2} In [ ]: def proportion_of_education(): # your code goes here # YOUR CODE HERE raise Not ImplementedError() In [ ]: assert type (proportion_of_education() ==type({}), "You must return a dictionary." assert len(proportion_of_education () == 4, "You have not returned a dictionary with four items in it." assert "less than high school" in proportion_of_education ().keys(), "You have not returned a dictionary with the correct keys." assert "high school" in proportion_of_education().keys(), "You have not returned a dictionary with the correct keys." assert "more than high school but not college" in proportion_of_education().keys(), "You have not returned a dictionary with the assert "college" in proportion_of_education().keys(), "You have not returned a dictionary with the correct keys."

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 24.06.2019 00:30
Setting up a home network using wireless connections is creating a a. vpn b. lan c. wan d. mini-internet
Answers: 2
question
Computers and Technology, 24.06.2019 05:30
CΓ³mo pongo un tomo de llamada sin pagar?
Answers: 1
question
Computers and Technology, 24.06.2019 17:00
Aman travel 200m towards east< br /> from his house then takes left< br /> to turn and moves 200 m north< br /> find the displacement & distance.< br />
Answers: 3
question
Computers and Technology, 24.06.2019 22:10
Function name: poly parameters: int returns: int description: a polynomial of degree n with coefficients a0,a1,a2,a3, . . ,an is the function p(x) = a0+a1x+a2x2+a3 βˆ— x3+ . . +an βˆ— xn this function can be evaluated at different values of x. for example, if: p(x) = 1+2x+ x2, then p(2) = 1+2 βˆ— 2+22 = 9. if p(x) = 1+x2+x4, then p(2) = 21 and p(3) = 91. write a function poly() that takes as input a list of coefficients a0, a1, a2, a3, . . , an of a polynomial p(x) and a value x. the function will return poly(x), which is the value of the polynomial when evaluated at x.
Answers: 3
You know the right answer?
Write a function called proportion_of_education which returns the proportion of children in the data...
Questions
question
Mathematics, 02.02.2020 21:45
question
Mathematics, 02.02.2020 21:45
question
Mathematics, 02.02.2020 21:45
question
Mathematics, 02.02.2020 21:45
question
Physics, 02.02.2020 21:45
Questions on the website: 13722363