Daily #39 · 6 November 2026
Capitals after an apostrophe Hard
What does this print?
print("it's ok".title())
Show the answer
B: It'S Ok
Why: title() starts a new word after any character that is not a letter, and that includes the apostrophe. string.capwords("it's ok") splits on spaces only and gives It's Ok.
Learn it: Strings cheat sheet ↗ Run it yourself ↗