code: def print_scoreboard(self):
          
          output = ''
          # parallel dictionaries with innings and scores
          innings = []
          away = []
          home = []
          for x in self:
              innings.append(x['inning'])
              away.append(x['away'])
              home.append(x['home'])
          # go through all the information and make a nice output
          # that looks like a scoreboard
          output += 'Inning\t'
          for x in innings:
              output += str(x) + ' '
          output += '\n'
          for x in innings:
              output += '---'
          output += '\nAway\t' + self.__enumerate_scoreboard(away)
          output += '\nHome\t' + self.__enumerate_scoreboard(home)
          return output
docs: Print object as a scoreboard.