You can use sets: teamA = set(random.sample(players, 4)) teamB = set(players) - teamA
HTH -- Miki Tebeka <miki.teb...@gmail.com> http://pythonwise.blogspot.com -- http://mail.python.org/mailman/listinfo/python-list
You can use sets: teamA = set(random.sample(players, 4)) teamB = set(players) - teamA
HTH -- Miki Tebeka <miki.teb...@gmail.com> http://pythonwise.blogspot.com -- http://mail.python.org/mailman/listinfo/python-list