Solución
solution.tsTypeScript
def count_consonants(text: str) -> int:
consonants = []
vowels = ["a", "e", "i", "o", "u"]
for element in text.lower():
if element in vowels or not element.isalpha():
continue
consonants.append(element)
return len(consonants)0respuestas