You are viewing a single comment's thread. Return to all comments →
def solve(s): output = [] for word in s.split(): if word.isalpha()==True: output.append(word.title()) else: output.append(word)
return ' '.join(output)
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 →
def solve(s): output = [] for word in s.split(): if word.isalpha()==True: output.append(word.title()) else: output.append(word)