fpl/fpl.py
def average_points_against(points_against):
            """Returns a dict with the average points scored against all teams,
            per position and location.

            :param dict points_against: A dict containing the points scored
                against each team in the Premier League.
            :rtype: dict
            """
            for team, positions in points_against.items():
                for position in positions.values():
                    position["H"] = average(position["H"])
                    position["A"] = average(position["A"])

                points_against[team] = positions

            return points_against
Returns a dict with the average points scored against all teams,
            per position and location.

            :param dict points_against: A dict containing the points scored
                against each team in the Premier League.
            :rtype: dict
            
Returns a dict with the average points scored against all teams,
per position and location.
Returns a dict with the average points scored against all teams per position and location .
def average_points_against(points_against):
            for team, positions in points_against.items():
                for position in positions.values():
                    position["H"] = average(position["H"])
                    position["A"] = average(position["A"])
                points_against[team] = positions
            return points_against
def average_points_against ( points_against ) : for team , positions in points_against . items ( ) : for position in positions . values ( ) : position [ "H" ] = average ( position [ "H" ] ) position [ "A" ] = average ( position [ "A" ] ) points_against [ team ] = positions return points_against
Returns a dict with the average points scored against all teams,
per position and location.
Returns a dict with the average points scored against all teams per position and location .
"""Returns a dict with the average points scored against all teams,
            per position and location.

            :param dict points_against: A dict containing the points scored
                against each team in the Premier League.
            :rtype: dict
            """
None
dict
points_against
A dict containing the points scored
against each team in the Premier League.
A dict containing the points scored against each team in the Premier League .