def standings_to_str(standings):
    """Format standings list as string. Use enumerate()
    index value both to display place. Ties receive the
    same place value.

    Format: "<place>. <team name> (<points>)\n"

    Parameters:
        standings (list): team standings

    Returns:
        str: formatted string representation of list
    """

    string = '\n'
    prev_points = 0
    place_tie = 0

    for i, team in enumerate(standings, 1):
        points = team['points']

        if points == prev_points:
            place = place_tie
        else:
            place, place_tie = i, i # increment

        string += f"{place}. {team['name']} ({points})\n"

        prev_points = points # increment

    return string