Question: Can someone help me solve these? I'm in python 3.6 and I don't know what to do. I can't import anything. I can use anything.

 Can someone help me solve these? I'm in python 3.6 and

Can someone help me solve these? I'm in python 3.6 and I don't know what to do. I can't import anything. I can use anything. However, it can be done using range, len, int, open, close, readlines, .get(), .items(), .remove(), .append(), .split(), and .sort(). I need to create the function that is being mentioned and have it do what is stated below it.

Functions creating/updating ranked databasesor wi These functions start from a database that either has incomplete rankings, or with incorrect rankings. They will need to create correct rankings for the rsulting database. . rank_names_by_year_gender (db, year, gender) This function accepts an existing (unranked) database db, a year and a gender. It calculates the ranking of names according to their counts and updates that information into the database. Rank male and female names separately. The most popular name for each gender (with the highest count) gets a rank value of 1 . Assign all tied-count names with the same rank and make sure the next rank is adjusted accordingly. Given counts of A:10, B:5, C:5, D:5, E:1, they'd get rankings of A-1, B-2, C-2, D-2, E-5 . This function updates the database in-place and returns None. . rank_names (db) : This function accepts an existing database and ranks all names for all years of present, making the database become ranked. . This function should return None. . Rank male and female names separately e Hint: use previous functions! 00e?@

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!