You can use sets:

teamA = set(random.sample(players, 4))
teamB = set(players) - teamA

HTH
--
Miki Tebeka <[email protected]>
http://pythonwise.blogspot.com
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to