def __init__(self, *args): self.totalScore = 0 for Frame in args: self.totalScore += Frame.getScore()