Capitalize Every Word

This style is often used for catchy phrases, headings, and short quotes. Write to_jaden_case, which capitalizes the first letter of every word in the string s. Words are separated by single spaces, and the rest of each word should stay unchanged.

Примеры

Ввод
"How can mirrors be real if our eyes aren't real"
Вывод
"How Can Mirrors Be Real If Our Eyes Aren't Real"
Ввод
"most trees are blue"
Вывод
"Most Trees Are Blue"
Ввод
"hello world"
Вывод
"Hello World"

Нужно реализовать

def to_jaden_case(s: str) -> str:

Теги

strings
PostgreSQLv16

Hawn jidher ir-riżultat tat-tħaddim tal-kodiċi

Visible tests
1
Input
"How can mirrors be real if our eyes aren't real"
Expected"How Can Mirrors Be Real If Our Eyes Aren't Real"
2
Input
"most trees are blue"
Expected"Most Trees Are Blue"
3
Input
"hello world"
Expected"Hello World"
4
Input
"a"
Expected"A"
5
Input
"already Capitalized Here"
Expected"Already Capitalized Here"
6
Input
"How can mirrors be real if our eyes aren't realHow can mirro"
Expected"How Can Mirrors Be Real If Our Eyes Aren't RealHow Can Mirro"
Focus radio
Paused · SomaFM · Fluid