def count_vowels(input_string): vowel_counts = {'a': 0, 'e': 0, 'i': 0, 'o': 0, 'u': 0} for char in input_string.lower(): if char in vowel_counts: vowel_counts[char] += 1 return vowel_counts input_string = input("Enter a sentence or word: ") vowel_counts = count_vowels(input_string) print("Vowel counts:") for vowel, count in vowel_counts.items(): print(f"{vowel}: {count}") # Made by Tristan, only for the eyes of Mr, Ronowicz... ( and me :P)