Welcome back. In this lecture, I'm going to show you yet another way to avoid the Unicode error that we discussed in the previous video. So instead of escaping every backslash in the path using another backslash, you can keep the single backslashes inside the file path and simply add the letter R, as you can see right here, right before the path right before the double quotes. R stands for URL string literal, which tells Python that every backslash inside the following string should be treated as a literal character, not as a special character, which is part of a special sequence such as backslash n for a new line. This way, you can place r in front of your string, and Python will ignore any special sequences, thus interpreting the backslash character as a normal character. So let's try this on a similar path.
To the one we had in the previous video, this is the path right here. Also, let's see this folder. So we have d users, and this is the location where the file will be created. So let's hit Enter. And notice that this time, although we have backslash, U, and backslash t inside the file path, they are treated as normal characters, and the Unicode error is not raised anymore. Finally, we can see the file that has just been created file on dot p y inside this particular folder.
Okay, great job. I'll see you in the next lecture.