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

Le résultat de l'exécution du code s'affichera ici

Tests12
Visible tests
Test caché 7
Test caché 8
Test caché 9
Test caché 10
Test caché 11
Test caché 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