You are viewing a single comment's thread. Return to all comments →
rt math import os import random import re import sys
def solve(s): # return s.title() return ' '.join(word.capitalize() if word else '' for word in s.split(" "))
if name == 'main': fptr = open(os.environ['OUTPUT_PATH'], 'w')
s = input() result = solve(s) fptr.write(result + '\n') fptr.close()
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 →
rt math import os import random import re import sys
Complete the solve function below.
def solve(s): # return s.title() return ' '.join(word.capitalize() if word else '' for word in s.split(" "))
if name == 'main': fptr = open(os.environ['OUTPUT_PATH'], 'w')