How to return the number of words in the string s that have length n (python)?
<p>For a homework assignment, I am suppose to implement a function <code>numLen()</code> that takes a string <code>s</code> and an integer <code>n</code> as parameters, and returns the number of words in the string <code>s</code> that have length <code>n</code>. Words in the string are non-space characters separated by at least one space. </p>

<p>an example would be to input:</p>

<pre><code>&gt;&gt;&gt; numLen("This is a test", 4)
</code></pre>

<p>and get 2 because there are 2 words in the string that have 4 characters.</p>

<p>I have no clue how to do this. </p>
