+ 1
I just don't understanding , my vowel detecting code just keep giving me the sum of all inputted characters.. any assistace pls
3 Antworten
+ 1
for ch in Vowel:
vcount += 1
So that is what you are doing: You are walking through the list Vowel and add +1 with every step.
What did you want to do instead?
0
thanks. I wanted a program that takes user input and sum up the total number o vowel leters in It
0
Vcount += 1
Change it to this
if ch in Word:
Vcount+= 1