practicepython.in
python exercises
171 exercises

Daily #39 · 6 November 2026

Capitals after an apostrophe Hard

What does this print?

print("it's ok".title())
  1. AIt's ok
  2. BIt'S Ok
  3. CIt's Ok
  4. DIT'S OK
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.

Play today’s puzzle →