Iterating over strings
📖 Scenario: You are working on a simple text analyzer that looks at each letter in a word to count vowels. This is useful for understanding how words are built and can help in language learning apps.
🎯 Goal: Build a small program that goes through each letter in a word and counts how many vowels it has.
📋 What You'll Learn
Create a string variable with a specific word
Create a variable to count vowels
Use a
for loop to go through each letter in the stringCheck if each letter is a vowel
Print the total count of vowels
💡 Why This Matters
🌍 Real World
Counting vowels helps in language learning apps and text analysis tools to understand word structure.
💼 Career
Knowing how to loop over strings and check characters is a basic skill useful in many programming jobs, including data processing and software development.
Progress0 / 4 steps