lesson04

Pay attention that the end result is expected to be a string, not a list as you're attempting here.

Here's a starter:

    TEAM1 = ''
    TEAM2 = ''
    TEAM3 = ''
    COUNTER = 0
    for PLAYER in data.MULTIPLAYERS.split("\n"):
        PLAYER_DATA = PLAYER.split()
        if int(PLAYER_DATA[1]):  # consider that's it's a 1 or 0 so truthy or falsy
            COUNTER += 1  # increment inside so you don't increment the people you're skipping
            TEAM_ID = COUNTER % 3  # modulus gives us the remainder, very helpful in distribution
            if TEAM_ID == 1:
                # I think you can figure it out from here

This approach may seem a little bulky but it's more simple to understand. Since we haven't learned about lists outside of their sliceability and output from .split(), it's helpful not to think of them as available for solving the tasks. The homework also specifically mentions modulus which should be your cue to the fact that it plays a role here.