Count Words with Given Prefix
📖 Scenario: You are building a simple tool to help a bookstore find how many book titles start with a certain prefix. This helps the store quickly find books related to a topic or author.
🎯 Goal: Build a program that counts how many words in a list start with a given prefix.
📋 What You'll Learn
Create a list of words with exact values
Create a string variable for the prefix to search
Use a loop to count how many words start with the prefix
Print the count as the final output
💡 Why This Matters
🌍 Real World
Searching for words or titles starting with a prefix is common in search engines, autocomplete features, and filtering lists.
💼 Career
Understanding how to filter and count items based on conditions is a key skill in programming and data processing jobs.
Progress0 / 4 steps