def throw_balls(self): while Coach.game_is_on(): print(self.name + " throws a ball!\n") sys.stdout.flush()