Untitled
unknown
python
2 years ago
385 B
11
Indexable
# Given a sentence, count the number of vowels (a, e, i, o, u) in it.
# First, create a variable to hold your sentence
# Set a count variable to 0
# Iterate over each character in the word
for
# Check if the lowercase character is a vowel
if char.lower() in "aeiou":
# Increment the count if it is a vowel
# Print the total count of vowels
Editor is loading...