$ ./guess_the_languageProblem Solving — fill the blank
Problem Solving — fill the blank · easy · #259

What goes in the blank?

# capitalise the first letter of each word
heading = text.____()

Answer: title (also accepted: title, title())

str.title() uppercases the first letter of every word; capitalize() only touches the first character.
Play Problem Solving ▸