Hello friends, welcome back. In this part I am going to tell you about tell you that how to rename the file and how to remove the file from the directory. So, for this we have to import library named OJS. These are the methods of arrest library, rename and remove. So open idle straight import lists then always dot rename file name let's check out Got this Hello dot txt into Hello one dot txt. Say hello.
First Aid first aid was Hello dot txt now using that script, I converted this this Hello dot txt into Hello con dot txt This way I perform how to rename operation. Now I'm going to remove this file. So for remove this file doesn't exist very easy. Let's write, remove and then the script. Oops, something went wrong. Oh, as I told that, firstly, perform rename of operation, converting the dot txt into Hello one dot txt.
Now, note is does not exist. That's why it from that error. So write Hello one dot txt and the script see now let's check out that exists or not Oh, Spanish out. These are two operations which is very important. Rename and remove by importing or library. So, thank you or till now.
Keep learning, keep growing and love Python and happy coding