Solución
solution.tsTypeScript
def count_words_by_length(sentence: str, length: int) -> int:
if not sentence: return 0
counter = 0
words = sentence.split()
for word in words:
if len(word) == length:
counter += 1
return counter0respuestas