We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prepare
- Python
- Strings
- Capitalize!
- Discussions
Capitalize!
Capitalize!
Sort by
recency
|
2766 Discussions
|
Please Login in order to post a comment
def solve(s): s = list(s) s[0] = s[0].upper() for i in range(1, len(s)): if s[i].isalpha() and s[i-1].isspace(): s[i] = s[i].upper() return ''.join(s)
very bad exercise.