Examples
Turn a line from the Zen of Python into alternating case
Input
Beautiful is better than ugly.Expected answer
bEaUtIfUl Is BeTtEr ThAn UgLy.Keep digits from consuming an alternating-case position
Letters alternate across spaces and digits; punctuation is unchanged.
Input
HTTP 404: Not FoundExpected answer
hTtP 404: nOt FoUnDContinue the pattern across a two-line countdown
The case pattern does not reset at a newline.
Input
Ready?
3, 2, 1... Launch!Expected answer
rEaDy?
3, 2, 1... LaUnCh!Alternate accented letters in a French café caption
Accented letters count as letters, rather than punctuation.
Input
Café déjà vu!Expected answer
cAfÉ dÉjÀ vU!Keep emoji intact in a small screen-reader fixture
The emoji is preserved and does not advance the letter pattern.
Input
Read 📚 then RUNExpected answer
rEaD 📚 tHeN rUnAlternatingCaps: Basic Example
Input
Hello, world!Expected answer
hElLo, WoRlD!Format reference: Alternating Caps background and specification