Count vowels
Count the number of vowels (a, e, i, o, u) in a string (case-insensitive).
Camel case to snake case
Write a function that converts camelCase input to snake_case while handling acronyms and numbers correctly.
Count consonants
Write a function that counts the number of consonant letters in a string.
Rotate String Right
Implement a function that rotates a given string to the right by a specified number of positions, handling shifts larger than the string length.
Find all numbers in text
Write a function that extracts all standalone integers from a text string using regular expressions.
Caesar Cipher Decrypt
Implement a function that decrypts a Caesar cipher by shifting letters back by a given number.
Parse numbered list
Take a string containing a numbered list and return a clean list of the item texts.
Parse range notation
Parse a comma-separated list of ranges and individual numbers, expanding each range into its full sequence.
Additive number sequence
Check whether a given digit string can be partitioned into a valid additive sequence where each term is the sum of the previous two.
Showing 9 challenges · 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.