 Hi everyone, in this tutorial I'm gonna show you how to create a file and write to that file in Python language. In order to do that I'm gonna open a file, I'm gonna call it example.txt for writing. So we're gonna write something to this file, this second parameter w means that we're going to write something to this file. If this file already exists then everything in this file gonna be overwritten. We want to save that in a variable, I'm gonna call it f and then we're going to use write function to write something inside this example.txt file. For example this is a Python tutorial. Now I'm gonna press enter. Here we have number 25 as the result of this write function. That means that this function is written successfully 25 characters. And finally let's close our file for writing. Now let's find our file example.txt. I'm gonna open explorer and I'm gonna search text files. Here is example.txt. And as you can see these 25 characters are written. That's all in this tutorial. Don't forget to check our other tutorials, bye.