Write a program that has dictionary of names of five cricketers and a list of their runs in 5 matches. Create another dictionary
Write a program that has dictionary of names of five cricketers and a list of their runs in 5 matches. Create another dictionary from this dictionary that has name of the students and their total runs (sum of all runs). Find out the player with maximum number of runs def orangecap(match_details): players_data = {} for k, v in match_details.iteritems(): for player_name, score in v.iteritems(): prev_player = player_name if prev_player == player_name: score = players_data.get(player_name, 0) + score players_data[player_name] = score high_score_player = max(players_data, key=lambda i: players_data[i]) print (str(high_score_player), players_data[high_score_player]) can anyone tell how to create another dictionary from this dictionary that has name of students and their total runs?