Write a function that takes a character (i.e. a string of length 1) and returns True if it is a vowel, False otherwise.
def vowel(char): vowels = "aeiouy" #Make sure that the character that is passed in #is lower case so it can be found in the #vowels string if char.lower() in vowels: return True else: return False def main(): if vowel("B"): print("Yes") else: print("No") if __name__ == '__main__': main()