Currently I'm working on a personal project... Where I want to randomize teams depending on the amount of people that are going to join. I'm creating a list where I'm adding the users into. And counting the amount of users that are joining. After I need to add users towards new lists. Is there a way to do that in the function groups? Or should I look at it from another direction?
def participents():
    users = []
    counter = 0
    while True:
        participent = input('Who is gonna join? ')
        if participent != 'stop':
            users.append(participent)
        elif participent == 'stop':
            break
    for user in users:
        counter +=1
    def groups():
        if counter % 3 == 0:
            ListsNeeded = counter / 3
            IntListsNeeded = int(ListsNeeded)
            print(IntListsNeeded)
            print("It's gonna be trio's")
        else:
            ListsNeeded = counter / 2
            IntListsNeeded = int(ListsNeeded)
            print(IntListsNeeded)
            print("It's gonna be duo's")
    groups()
participents()
 
     
    