Laddar uppgiften…
Given a string s where words are separated by single spaces, capitalize the first letter of each word. Leave all other characters exactly as they are. This is like simple formatting for titles, names, or labels in text. Return the updated string.
"hello world""Hello World""the quick brown FOX""The Quick Brown FOX""a b c""A B C"def capitalize_words(s: str) -> str:
Logga in för att se historik över inskick
Logga inLogga in för att använda AI-mentorn
Logga in"hello world""Hello World""the quick brown FOX""The Quick Brown FOX""a b c""A B C""abc""Abc""ab""Ab""HELLO WORLD""HELLO WORLD"