Attempting to print the number of words that have a certain length
<p>The format for this function is numLen(s,n): where s is a string and n is an integer. What the code is supposed to do is return the number of words in the string that have length n, so:</p>

<p>numLen("This is a test", 4)</p>

<p>Would return 2, since two words have 4 characters.</p>

<pre><code>def numLen(s, n):
'''
takes string s and integer n as parameters and returns the number of words
in the string s that have length n
'''
return s.split()
if len(s) == n:
    return 'hello'
</code></pre>

<p>I attempted to split the string into a list and check the length of each word in that list, but that didn't seem to work out. The farthest I managed to get was returning "hello" when I replaced 4 with 14, just to see if the length code would work.</p>
