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
Prijavi se da vidiš povijest predaja
PrijavaPrijavi se da koristiš AI mentora
PrijavaVisible 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
"hello world"Expected
"Hello World"3
Input
"a b c"Expected
"A B C"4
Input
"python"Expected
"Python"5
Input
"the quick brown fox"Expected
"The Quick Brown Fox"6
Input
"abc"Expected
"Abc"Focus radio
Paused · SomaFM · Fluid