Write a python function that Capitalize the First Letter of Every Word in the File


Topic: Write a python function that Capitalize the First Letter of Every Word in the File

Solution

def capitalize(fname):
    with open(fname, 'r') as f:
        for line in f:
            l=line.title()
            print(l)



List all Python Programs