Python 3.5 "for loop" "enumerate()” Select Word from List
<p>Hi I'm new here I've just started learning python</p>

<p>Individual words in wordList will be referred to as “word” as a variable.</p>

<p>who would I set this up this for a python english grammar gen program by the way. </p>

<p>also I wanna try  to Enter a loop that repeats once for each word in wordList. Trying to use a for loop with “enumerate()” function but I keep getting stuck. Any help would be great. </p>

<pre><code>print('Welcome to my English Test App')



# Import the random module to allow us to select the word list and questions at random.
import random
candidateWords = ['HELLO', 'GOODBYE', 'NAME', 'DAY', 'NIGHT', 'HOUR', 'POTATO', 'BIG', 'SMALL', 'GOOD', 'BAD', 'YES', 'NO', 'HOUSE', 'QUESTION', 'BALLOON', 'CAT', 'DUCK', 'PIGEON', 'POSTER', 'TELEVISION', 'SPY', 'RHYTHM', 'SUBSTANTIAL', 'SNOW', 'MAGNET', 'TOWEL', 'WALKING', 'SPEAKER', 'UNCHARACTERISTICALLY']
# places words down in a list
s = random.sample (candidateWords, 5)
for index,w in enumerate(s):
print(index,w)
</code></pre>