code: def team_players(self, team):
          
          headers = ['Jersey Number', 'Name', 'Position', 'Nationality',
                     'Date of Birth']
          result = [headers]
  
          result.extend([player['shirtNumber'],
                         player['name'],
                         player['position'],
                         player['nationality'],
                         player['dateOfBirth']]
                        for player in team)
          self.generate_output(result)
docs: Store output of team players to a CSV file