Substring Search Patterns
📖 Scenario: You are building a simple text search tool that helps users find specific words inside a paragraph. This is useful for searching keywords in documents, notes, or messages.
🎯 Goal: Build a program that searches for a given substring inside a text and shows all the starting positions where the substring appears.
📋 What You'll Learn
Create a string variable with a fixed paragraph of text.
Create a string variable for the substring to search.
Use a loop to find all starting indexes where the substring appears in the text.
Print the list of all starting positions.
💡 Why This Matters
🌍 Real World
Searching for keywords in documents, emails, or chat messages to quickly find important information.
💼 Career
Substring search is a basic skill used in text processing, search engines, and data analysis roles.
Progress0 / 4 steps