Way to accomplish task using list comphrehension
<p>Is there a way to accomplish the following using a <code>list comprehension</code>?  Or is there a more Pythonic way of accomplishing this?  </p>

<pre><code>count = 0
x = 'uewoiquewqoiuinkcnsjk'
for letter in x:
    if letter in ['a', 'e', 'i', 'o', 'u']:
        count += 1
</code></pre>

<p>Just trying to learn the best programming practices?</p>

<p>Use the combination of list_comprehension and len function.</p>

<pre><code>&gt;&gt;&gt; x = 'uewoiquewqoiuinkcnsjk'
&gt;&gt;&gt; len([i for i in x if i in 'aeiou'])
10
&gt;&gt;&gt; 
</code></pre>

python list-comprehension