Confident Word Caps

This style works well for punchy quotes and short headings where every word starts with confidence. Write to_jaden_case, which takes a string string and capitalizes the first letter of each word. Words are separated by spaces, and the word order and the words themselves should stay the same.

Примеры

Ввод
"How can mirrors be real if our eyes aren't real"
Вывод
"How Can Mirrors Be Real If Our Eyes Aren't Real"
Ввод
"hello world"
Вывод
"Hello World"
Ввод
"a b c"
Вывод
"A B C"

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

def to_jaden_case(string: str) -> str:

Теги

stringslists
PostgreSQLv16

Čia bus kodo vykdymo rezultatas

Tests12
Visible tests
Paslėptas testas 7
Paslėptas testas 8
Paslėptas testas 9
Paslėptas testas 10
Paslėptas testas 11
Paslėptas testas 12

They run when you press "Submit" — your whole solution is checked against them so you can't hard-code answers for the visible cases.

Focus radio
Paused · SomaFM · Fluid