In the code field, you can see a piece of a program. You don't have to know all the tools that are used in this code (you will if you continue studying Python)! For now, we provide an explanation of what it does:
Import the module
osthat provides tools to work with the operating system of your computer.Ask a user for the input file name.
If the path that a user has entered exists, do the following steps:
Open the file in the reading mode, read its content.
Apply the previously defined function
process()to the text taken from the file.Open for writing a new file with a slightly changed name, write the processed text there.
Print that everything is done.
If the path entered by a user doesn't exist, print the corresponding message.
Your task is to put the comments in the code where you think they are appropriate. Don't change anything in the code, just add the comments. And mind the rules of good commenting!