Snake case to camel case
Implement a function that converts snake_case strings to camelCase.
Error message formatter
Write a function that constructs a formatted error message from a code, an optional context, and a fallback message.
Extract Hashtags
Extract unique hashtags from a given text string in the order they appear.
Remove HTML tags
Remove all HTML tags from a string to extract clean text.
Extract Quoted Strings
Write a function that extracts the text inside every double-quoted substring from a given string.
Find all numbers in text
Write a function that extracts all standalone integers from a text string using regular expressions.
Parse markdown headers
Write a function that parses markdown headers and returns their levels and texts.
Parse bullet list
Parse a markdown-style bullet list and return the list of item texts, stripping bullet markers and trimming surrounding whitespace.
Parse numbered list
Take a string containing a numbered list and return a clean list of the item texts.
Decode base64 string
Write a function that decodes a base64 string to its original UTF-8 text without using the base64 module.
Find repeated words
Return a lowercase list of unique words that appear more than once across a given text, ignoring case.
Showing 1–11 of 11 challenges · easy · Strings & Text
Strings & Text — Python coding challenges
What you will find here
This page lists strings & text challenges — real Python problems you solve in the browser IDE with instant test feedback. Each challenge includes a clear brief, starter code, and automated checks.
Challenges vs tutorials and quizzes
Challenges test what you can build under constraints. For guided teaching, use our Python tutorials. For quick checks, try quizzes or copy snippets from code samples.