def printreport(self)print nicely formatted report self winsa self winsb print("summary of" "games:\ "print(wins (totalshutouts (wins"print(""self printline(" "self winsaself shutsanself printline(" "self winsbself shutsbndef printline(selflabelwinsshutsn)template "player { }:{ : ({ : %}{ : ({ })if wins = avoid division by zeroshutstr "elseshutstr "{ : %}format(float(shuts)/winsprint(template format(labelwinsfloat(wins)/nshutsshutstr)def printintro()print("this program simulates games of racquetball between two"print('players called "aand "bthe ability of each player is'print("indicated by probability ( number between and that"print("the player wins the point when serving player always"print("has the first serve \ "def getinputs()returns the three simulation parameters eval(input("what is the prob player wins serve") eval(input("what is the prob player wins serve") eval(input("how many games to simulate")return abn def main()printintro(probaprobbn getinputs(play the games stats simstats(for in range( )thegame rballgame(probaprobbcreate new game thegame play(play it