team_dict = {} while True: team_name = input("Enter a team name (or 'done' to exit): ") if team_name == 'done': break wins = int(input("Enter the number of wins: ")) losses = int(input("Enter the number of losses: ")) team_dict[team_name] = [wins, losses] team_name = input("Enter a team name to get their winning percentage: ") if team_name in team_dict: wins, losses = team_dict[team_name] winning_percentage = wins / (wins + losses) * 100 print(f"The winning percentage for {team_name} is {winning_percentage:.2f}%.") else: print(f"{team_name} is not in the dictionary.") wins_list = [wins for wins, losses in team_dict.values()] print(wins_list) winning_teams = [team_name for team_name, (wins, losses) in team_dict.items() if wins > losses] print(winning_teams)