def main():
series = input('Enter series of lowercase letters:')
index = 0
vowels = 0
constants = 0
while index < len(series):
if series[index] in "aeiou":
vowels += 1
index += 1
else:
constants += 1
index += 1
print('Vowels:', vowels)
print('Constants:', constants)
main()
好的,这样就修复了错误,但它只是为答案提供了空白空间,为什么不计算它们