Untitled

mail@pastecode.io avatar
unknown
python
a year ago
385 B
4
Indexable
Never
# 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