Question: In Python Write a program that contains multiple nested dictionaries. The first dictionary has key of city name. The inner dictionary contains sport as key.

In Python

Write a program that contains multiple nested dictionaries. The first dictionary has key of city name. The inner dictionary contains sport as key. The next inner dictionary contains team name, #wins, #losses. Display for every team, its win percentage (wins / (wins+losses)). Find the city that has the highest combined average winning percentage from all of its teams (add winning percentage of each team in city and divide by number of teams).

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!