title: How can I use random.sample & random.choice
body: <p>I am trying to use <code>random.sample</code> and <code>random.choice</code> to make a simple game.
  What I want to do is get 8 words randomly from the <code>candidateWords</code> list (this list has 100 words) and then randomly pick 1 word out to be the answer.</p>
  
  <p>Right now the <code>for</code> loop is showing all my words from the <code>candidateWords</code> list and at</p>
  
  <pre><code>one = random.choice(candidateWords)
  </code></pre>
  
  <p>is not picking the chosen word from the 8 words. I haven't able to generate 8 words in the first place so I know why this isn't working properly.</p>
  
  <pre><code>import random
  candidateWords = ['AETHER', 'BADGED', 'BALDER', 'BANDED', 'BANTER', 'BARBER', 'BASHER', 'BATHED', 'BATHER', 'BEAMED', 'BEANED', 'BEAVER', 'BECKET', 'BEDDER', 'BEDELL', 'BEDRID', 'BEEPER', 'BEGGAR', 'BEGGED', 'BELIES', 'BELLES', 'BENDED', 'BENDEE', 'BETTER', 'BLAMER', 'BLOWER', 'BOBBER', 'BOLDER', 'BOLTER', 'BOMBER', 'BOOKER', 'BOPPER', 'BORDER', 'BOSKER', 'BOTHER', 'BOWYER', 'BRACER', 'BUDGER', 'BUMPER', 'BUSHER', 'BUSIER', 'CEILER', 'DEADEN', 'DEAFER', 'DEARER', 'DELVER', 'DENSER', 'DEXTER', 'EVADER', 'GELDED', 'GELDER', 'HEARER', 'HEIFER', 'HERDER', 'HIDDEN', 'JESTER', 'JUDDER', 'KIDDED', 'KIDDER', 'LEANER', 'LEAPER', 'LEASER', 'LEVIED', 'LEVIER', 'LEVIES', 'LIDDED', 'MADDER', 'MEANER', 'MENDER', 'MINDER', 'NEATER', 'NEEDED', 'NESTER', 'PENNER', 'PERTER', 'PEWTER', 'PODDED', 'PONDER', 'RADDED', 'REALER', 'REAVER', 'REEDED', 'REIVER', 'RELIER', 'RENDER', 'SEARER', 'SEDGES', 'SEEDED', 'SEISER', 'SETTER', 'SIDDUR', 'TEENER', 'TEMPER', 'TENDER', 'TERMER', 'VENDER', 'WEDDER', 'WEEDED', 'WELDED', 'YONDER']
  
  def wordlist():
      for index, item in enumerate(random.sample(candidateWords, len(candidateWords))):
          print(index, ") ", item, sep='')
  
  one = random.choice(candidateWords)
  
  print("Welcome to the Guess-The-Word Game.\nThe Password is one of these words:")
  wordlist()
  print(one)
  </code></pre>