You are viewing a single comment's thread. Return to all comments →
Using regex:
def solve(s): r = "" names = re.split(r"(\s+)", s) for name in names: n = list(name) n[0] = n[0].upper() n = "".join(n) r += n return r.strip()
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 →
Using regex: