input: 
  from typing import List
  
  
  def count_vowels_and_consonants(word: str) -> List[int]:
      """
      Given a word as a string, count the number of vowels and consonants. A vowel is one of 'a', 'e', 'i', 'o', 'u'.
      The function should return a list with two integers: [number_of_vowels, number_of_consonants].
      
      >>> count_vowels_and_consonants("hello")
      [2, 3]
      >>> count_vowels_and_consonants("algorithm")
      [3, 6]
      """
  
output:     vowels = "aeiou"
      vowel_count = 0
      consonant_count = 0
      
      for char in word:
          if char in vowels:
              vowel_count += 1
          elif char.isalpha():
              consonant_count += 1
      
      return [vowel_count, consonant_count]