"""
Lecture 11 - You Try: char_counts
Returns a tuple of (vowel count, consonant count) for a lowercase string.
"""


def char_counts(s):
    """
    - s is a string of lowercase chars
    - Return a tuple where the first element is the number
      of vowels in s and the second element is the number
      of consonants in s
    """
    vowels = "aeiou"
    num_vowels = 0
    num_consonants = 0
    for ch in s:
        if ch in vowels:
            num_vowels += 1
        else:
            num_consonants += 1
    return (num_vowels, num_consonants)


# Test calls
print(char_counts("hello"))       # (2, 3)
print(char_counts("aeiou"))       # (5, 0)
print(char_counts("bcdfg"))       # (0, 5)
print(char_counts("python"))      # (1, 5)
