This program is supposed to show the different types of characters in a string entered by the user but for some unknown reason it doesn't show the number of vowels in a string even when there are a bunch of them in it. If someone could identify the mistake it would be great!
str=input("Enter a string: ")
upper = 0
lower = 0
num = 0
vowel = 0
special = 0
for i in range(len(str)):
if(str[i].isupper()):
upper+=1
elif(str[i].islower()):
lower+=1
elif(str[i].isdigit()):
num+=1
elif(str[i] == "a"or"e"or"i"or"o"or"u"or"A"or"E"or"I"or"O"or"U"):
vowel = vowel+1
else:
special+=1
print("Upper Case Letters: ",upper)
print("lower case letters: ",lower)
print("Numbers: ",num)
print("Vowels: ",vowel)
print("Special Characters: ",special)