β back to unit
Easy
# puzzle gauntlet easy
Title Case Machine
Book titles capitalize Every Single Word β build the machine that does it. π
You get a lowercase title of space-separated words. Capitalize each word's first letter and print the result. (Build it by hand β no .title() shortcut!)
Example:
Input: title = "the hobbit strikes back"
Output: The Hobbit Strikes Back
Each word's first letter gets uppercased while the rest stays the same β "hobbit" becomes "Hobbit", and so on for every word.
π‘ need a hint?
pg-title-case.pyπ given lines are locked β write your code in between
loading...