(players_list, roster, opposing_roster)
return {"scorer":scorer, "assists":assists, "goalie":goalie}
Grab the list of players involved in a goal and return their Id except for assists which is a list of Ids
Grab the list of players involved in a goal and return their Id except for assists which is a list of Ids
Grab the list of players involved in a goal and return their Id except for assists which is a list of Ids
def get_goal_players(players_list, roster, opposing_roster):
    """
        Grab the list of players involved in a goal and return their Id except for assists which is a list of Ids
    """
    scorerId = ""
    assistsId = ""
    goalieId = ""
    scorer = {}
    assists = []
    goalie = {}
    
    for player in players_list:

        if player["playerType"] == "Scorer":
            scorerId = player['player']['id']
            scorer["info"] = roster[scorerId]
            scorer["points"] = player['seasonTotal']
        if player["playerType"] == "Assist":
            assistsId = player['player']['id']
            assists.append({"info":roster[assistsId], "points":player['seasonTotal']}) 
        if player["playerType"] == "Goalie":
            goalieId = player['player']['id']
            goalie = opposing_roster[goalieId]

    return {"scorer":scorer, "assists":assists, "goalie":goalie}
def get_goal_players ( players_list , roster , opposing_roster ) : scorerId = "" assistsId = "" goalieId = "" scorer = { } assists = [ ] goalie = { } for player in players_list : if player [ "playerType" ] == "Scorer" : scorerId = player [ 'player' ] [ 'id' ] scorer [ "info" ] = roster [ scorerId ] scorer [ "points" ] = player [ 'seasonTotal' ] if player [ "playerType" ] == "Assist" : assistsId = player [ 'player' ] [ 'id' ] assists . append ( { "info" : roster [ assistsId ] , "points" : player [ 'seasonTotal' ] } ) if player [ "playerType" ] == "Goalie" : goalieId = player [ 'player' ] [ 'id' ] goalie = opposing_roster [ goalieId ] return { "scorer" : scorer , "assists" : assists , "goalie" : goalie }