n = int(input("Enter number of teams")) scores = {} for i in range(0,n): name = input("Enter team name") w = int(input("Enter wins")) l = int(input("Enter losses")) scores[name] = [w, l] print(scores) t = input("Enter team name") print("winning percentage of", t, "is", (scores[t][0]/sum(scores[t]))*100) w_team=[] for i in scores.values(): w_team.append(i[0]) print("Winning of each team",w_team) w_rec=[] for i in scores: if scores[i][0] > 0: w_rec.append(i) print("Winning Records: ", w_rec)