<filename>Practice/Python/Strings/capitalize.py<gh_stars>1-10
def capitalize(string):
    return " ".join([word.capitalize() for word in string.split(" ")])

if __name__ == '__main__':
    print(capitalize(input("Enter a string: ")))

<filename>Practice/Python/Strings/capitalize.py<gh_stars>1-10
def capitalize(string):
    return " ".join([word.capitalize() for word in string.split(" ")])

if __name__ == '__main__':
    print(capitalize(input("Enter a string: ")))
