You are viewing a single comment's thread. Return to all comments →
import math import os import random import re import sys import re
def solve(s): c_string = re.sub(r'\b[a-z]', lambda match: match.group(0).upper(),s) return c_string
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 →
import math import os import random import re import sys import re
def solve(s): c_string = re.sub(r'\b[a-z]', lambda match: match.group(0).upper(),s) return c_string
if name == 'main': fptr = open(os.environ['OUTPUT_PATH'], 'w')