Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # week two course 02 using lists
- from random import choice
- import time
- from random import sample
- teamA=[]
- teamB=[]
- players =["Jacqueline", " Jane", "James", "Jason", "Jacob", "Jenny"]
- print(players)
- def build_a_team(team):
- team=sample(players,3)
- print (team)
- for player in team:
- players.remove(player)
- build_a_team(teamA)
- build_a_team(teamB)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement