title: Python: Counting Vowels from List
body: <p>I'm new to python and having some difficulty troubleshooting my script.</p>
  
  <p>My assignment is to create some function that accepts a list of strings and returns the number of vowels within the entire list.</p>
  
  <p>The game plan I'm attempting to follow is:</p>
  
  <ol>
  <li>Merge list elements into a single string</li>
  <li>Create a loop that tests if a string element is a vowel</li>
  <li>Use a counter variable to keep track of vowels in string</li>
  <li>Print the value of the counter variable when finished with loop</li>
  </ol>
  
  <p>My code is not elegant, but it also does not work.</p>
  
  <pre><code>def vowelCounter(listName):
      new = ''.join(listName)
      n = len(new)
      count = 0
      vowels = 'aeiouAEIOU'
      i = 0
      for i in range(0,n):
          while i &lt; n:
              if new[i] in vowels:
                  count += 1
                  i += 1
                  return
              print count
              return
          return
      return
  
  print(vowelCounter(["terrapin","station","13points"]))
  </code></pre>
  
  <p>Please forgive any stupid errors I may have. I will certainly appreciate any help you can offer!</p>