class Team: # constructor def __init__(self,tn,tcy,tcd): self.tname = tn self.tcity = tcy self.tcode = tcd self.vgames = [] self.hgames = [] def get_tcode(self): return self.tcode def add_vgame(self,g): self.vgames.append(g) def add_hgame(self,g): self.hgames.append(g) # this method returns win%, #wins, #losses, #ties for the team # the win% is calculated by the formula: (#wins + 0.5*#ties)/(#wins + #losses + #ties) # you should round the win% to 3 decimal points using round(x,3) where x is the win% def wins_losses_ties(self): pass return pct, wins, losses, ties def __str__(self): return self.tname