text = input("Enter some text: ") txt = str.lower(text) array = ['a', 'e', 'i', 'o', 'u'] count = [] for i in array: count.append(txt.count(i)) i = 0 while i < len(array): print("Count of {}: {}".format(array[i], count[i])) i += 1