You are viewing a single comment's thread. Return to all comments →
Simple
def solve(s): if len(s) == 0: return '' names = s.split(' ') out = [] for name in names: if len(name) == 0: out.append('') continue out.append(name.capitalize()) return ' '.join(out)
Seems like cookies are disabled on this browser, please enable them to open this website
Capitalize!
You are viewing a single comment's thread. Return to all comments →
Simple