O Level Exam : Practical Question
📝 HTML
🎨 CSS
⚡ Java Script
dic ={} lstwin = [] lstrec = [] while True : name = input ("Enter the name of team (enter q for quit)=") if name == "Q" or name == "q" : break else : win = int (input("Enter the no.of win match =")) loss = int(input("Enter the no.of loss match =")) dic [ name ] = [ win , loss ] lstwin += [ win ] if win > 0 : lstrec += [ name ] nam = input ("Enter the name of team those you are entered =") print ("Winning percentage =",dic [ nam ][0] *100 / (dic [nam ][0] + dic[nam ][1] )) print("wining list of all team = ",lstwin) print("team who has winning records are ",lstrec)
▶ Run Code
🖥 Output: