print("Enter 'x' for exit.");
string = input("Enter any string to count number of each vowel: ");
if string == 'x':
exit();
else:
vowels = 'aeiou';
string = string.casefold();
count = {}.fromkeys(vowels,0);
print();
for char in string:
if char in count:
count[char] += 1;
print(count);
If the answers is incorrect or not given, you can answer the above question in the comment box. If the answers is incorrect or not given, you can answer the above question in the comment box.