You are viewing a single comment's thread. Return to all comments →
import math import os import random import re import sys
def solve(s): for i in s.split(): s=s.replace(i,i.capitalize()) return s
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 →
!/bin/python3
import math import os import random import re import sys
Complete the solve function below.
def solve(s): for i in s.split(): s=s.replace(i,i.capitalize()) return s
if name == 'main': fptr = open(os.environ['OUTPUT_PATH'], 'w')