#!/usr/bin/env python3 """ vowel_counter.py An advanced vowel counter for the Advanced Topics in CS course. """ __author__ = "Richard White" __version__ = "2021-01-26" def count_vowels(word): """Counts the number of vowels in a word. Counts "y" letters as well, and attempts to be smart about reporting the correct number of y-vowels. """ pass # function goes here def main(): for test in (("dog",1), ("why",1), ("theory",3), ("yellow",2), ("mystery",3), ("hysterical",4)): if count_vowels(test[0]) == test[1]: print(test[0] + " passed!") else: print(test[0] + " failed!") if __name__ == "__main__": main()