<filename>python/Strings/Capitalize.py
def capitalize(string):
    s=string
    for x in s[:].split():
        s = s.replace(x, x.capitalize())
    return s

<filename>python/Strings/Capitalize.py
def capitalize(string):
    s=string
    for x in s[:].split():
        s = s.replace(x, x.capitalize())
    return s
