0

How to fix this i feel something off

vowels = "aeiouAEIOU" word = input() for letters in word: if letters in vowels: print() Why its not working probably

17th Aug 2025, 8:12 PM
Hamza Saber
Hamza Saber - avatar
3 ответов
+ 2
Are you trying to count the letters that are vowels or are you trying to only print the vowels found ? I believe you are missing the idea that you want to count how many vowels were found ? But i could be mistaken. https://www.sololearn.com/coach/80?ref=app
17th Aug 2025, 8:21 PM
BroFar
BroFar - avatar
+ 1
you should have a count variable that gets incremented when the letter is in vowels. How to fix this i feel something off vowels = "aeiouAEIOU" word = input() count = 0 # add this for letters in word: if letters in vowels: count += 1 # do this print(count) # what you want
18th Aug 2025, 4:06 AM
Bob_Li
Bob_Li - avatar
0
Idk what to add in print i tried adding letters but it just dont tell how much it give me the letters
17th Aug 2025, 8:12 PM
Hamza Saber
Hamza Saber - avatar