Python Program to Capitalize the First Letter of Every Word in the File Using title() Function
#Python Program to Capitalize the First Letter of Every Word in the File Using title() file = open('readme.txt', 'r') for line in file: output = line.title() print(output)
Output:
Hello World