Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from random import choice
- teamA= []
- teamB= []
- players = ['Messi', 'Ronaldo', 'Maradona', 'Pele', 'Kempes', 'Caniggia']
- def add_player_to_team (team):
- player_picked=choice (players)
- team.append (player_picked)
- players.remove (player_picked)
- for players in range (int(len(players)/2)):
- add_player_to_team (teamA)
- add_player_to_team (teamB)
- print (teamA)
- print (teamB)
Add Comment
Please, Sign In to add comment