LogicDecode / hactoberfest2023

Pull request best of your code snippets to help open source community
MIT License
10 stars 143 forks source link

Update adv-first-letter-capatalisation.py #77

Closed Nikhil18Patil closed 11 months ago

Nikhil18Patil commented 11 months ago

This code reads the file, capitalizes the first letter of each word in each line, and then overwrites the file with the modified content. It also includes error handling to check if the file exists before attempting to read and modify it.