Strings and Text Processing Python lessons
Indexing, slicing, searching, formatting, normalization, and character-by-character logic.
Core concepts
Problem-solving patterns
- slice · string
- normalization · palindrome
- isalpha · counting
- split · len
- count · case sensitivity
What this topic builds
Learn the idea once, trace it through two verified cases, then explain why your approach works.
All 10 lessons in this topic
Work from top to bottom to build each concept gradually.
- #037Reverse textStarterPremium
Reverse a short product label for a string-slicing exercise.
- #038Check a phrase palindromeStarterPremium
Check a phrase that is a palindrome when spaces and case are ignored.
- #039Count vowels and consonantsBeginnerPremium
Count the letter types in a short course title.
- #040Count wordsBeginnerPremium
Count words in a normal sentence.
- #041Count a chosen characterBeginnerPremium
Count how often a letter appears in a fruit name.
- #042Remove duplicate charactersBeginnerPremium
Keep only the first appearance of each character in a word.
- #043Check for anagramsIntermediatePremium
Check two short words made from the same letters.
- #044Find the first nonrepeating characterIntermediatePremium
Find the earliest character that appears only once.
- #045Run-length encode textIntermediatePremium
Encode a compact sensor status string with repeated runs.
- #046Find the longest wordAdvancedPremium
Find the longest word in a brief course description.