Capitalize word starts

Write codeEasy12 min

Your task

Given a sentence s of lowercase words separated by single spaces, return the sentence with the first letter of each word capitalized and the rest left lowercase. There are no leading, trailing, or repeated spaces, and the string may be empty (return ''). Words contain only lowercase letters.

Examples

title_case(s: str) -> str
Example 1
Inputtitle_case("hello world")
Output"Hello World"