Not sure why, but my count is only come back as 1:
def count_words(text: str, words: set) -> int:
list = text.lower().split()
count = 0
for a in words:
if a in list:
count += 1
return count
Created at: 2018/12/31 16:53; Updated at: 2019/01/03 08:27