Advertisement
clockworkpc

Swingers Party

Jun 10th, 2011
322
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.18 KB | None | 0 0
  1. #!/usr/bin/python
  2. #/home/clockworkpcasus/Documents/bin/swingersParty.py
  3.  
  4. # Released under a GPLv3 Licence by Clockwork PC 2011#
  5. #
  6. # www.clockworkpc.com.au
  7. #
  8. # You are entitled to the following four freedoms:
  9. # Freedom 0: To run this program for any purpose
  10. # Freedom 1: To study how this program works and change it to make it do what you wish
  11. # Freedom 2: To redistribute copies so you can help your neighbour
  12. # Freedom 3: To distribute copies of your modified version to others
  13.  
  14. import random
  15.  
  16. leads = ['Mr Lindy', 'Mr Charleston', 'Mr Blues', 'Mr Balboa']
  17. follows = ['Mrs Lindy', 'Mrs Charleston', 'Mrs Blues', 'Mrs Balboa']
  18.  
  19. a = random.randrange(0, 4)
  20. b = random.randrange(0, 4)
  21.  
  22. print leads[a] + " gets to swing with " + follows [b]
  23.  
  24. del leads[a]
  25. del follows[b]
  26.  
  27. c = random.randrange(0, 3)
  28. d = random.randrange(0, 3)
  29.  
  30. print leads[c] + " gets to swing with " + follows [d]
  31.  
  32. del leads[c]
  33. del follows[d]
  34.  
  35. #print leads
  36. #print follows
  37.  
  38. e = random.randrange(0, 2)
  39. f = random.randrange(0, 2)
  40.  
  41. print leads[e] + " gets to swing with " + follows [f]
  42.  
  43. del leads[e]
  44. del follows[f]
  45.  
  46. #print leads
  47. #print follows
  48.  
  49. print leads[0] + " gets to swing with " + follows [0]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement