G2A Many GEOs
SHARE
TWEET

Untitled

a guest Mar 28th, 2020 60 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. from random import shuffle
  2.  
  3. teamA = []
  4. teamB = []
  5.  
  6. players = ['Harry', 'Hermione', 'Neville', 'Ginny']
  7.  
  8. shuffle(players)
  9.  
  10. def popPlayer(team):
  11.  
  12.     playerPopped = players.pop()
  13.     team.append(playerPopped)
  14.    
  15.  
  16. for x in range(2):
  17.     popPlayer(teamA)
  18.     popPlayer(teamB)
  19.  
  20. print ("Team A:", teamA)
  21. print ("Team B:", teamB)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top