You are viewing a single comment's thread. Return to all comments →
def solve(s): s=list(s) s[0]=s[0].upper() for i in range(1,len(s)): if s[i-1]==' ': s[i]=s[i].upper() s=''.join(s) print(s) return s
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): s=list(s) s[0]=s[0].upper() for i in range(1,len(s)): if s[i-1]==' ': s[i]=s[i].upper() s=''.join(s) print(s) return s