PYTHON There are lists of tracks for each country(not sorted). Each…
Question Answered step-by-step PYTHON There are lists of tracks for each country(not sorted). Each… PYTHONThere are lists of tracks for each country(not sorted). Each track has unique id, but they can have duplicates for different countries(with same id of course). Track class these fields;id (unique for track)country (String)count(number of times track has been listened in the country),genre (unique for track, does not change from country to country) Implement these: getBestNTracksinACountry(String country, int n) , getBestNTracksGlobally(int n) -> for this one, you need to sum up the counts for each track. Computer Science Engineering & Technology Python Programming Share QuestionEmailCopy link Comments (0)


