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
About The Author
I have more than 6 years of experience in the IT industry, and I have built a solid foundation in the creation and upkeep of online applications. I have constantly shown strong work ethics, self-motivation, and an aptitude for learning quickly throughout my career.