Jul-03-2020, 02:16 PM
(Jul-03-2020, 10:46 AM)buran Wrote: you need to iterate over chars in text and check if char is in vowels
Thank you, my friend!
Here is my script now:
vowels = 'aeiou' # vowels = ('a', 'e', 'i', 'o', 'u') result = 0 for char in text: if char.lower() in vowels: result = result +1 print(result)The output is exactly: 262. I did it!
I just wish I could have come up with this on my own instead of having to write a long winded, overly analytical question when the solution was so clearly obvious.
Thanks again, @buran.
![Smile Smile](https://python-forum.io/images/smilies/smile.png)