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
Get step-by-step solutions from verified subject matter experts
