def average_height(team_name):
    """Calculate the average height of the team

    Parameters
    ----------
    team_name : list
        Team data

    Returns
    -------
    float
        The average height of the selected team
    """
    return sum(height["height"] for height in team_name) / len(team_name[0])