Capitalize!

  • + 0 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')

    s = input()
    
    result = solve(s)
    
    fptr.write(result + '\n')
    
    fptr.close()