def numStartsWith(wordlist, letter): match = 0 for w in wordlist: if w.startswith(letter): match += 1 return match