 Hi again, in this lesson, we're going to talk about that how to replace a substring of a string in Python programming language. For example, let's say that we have a string which will be kept in our variable country and let's say that our string is United States. How can we replace substring states into substring kingdom? Let's use our variable country and let's call replace method. Inside replace method we want to provide our old substring and after that second argument will be our new substring. For example, kingdom and this method will return the copy of our new string with replaced world-word states into world-word kingdom. Notice also that this replace method will replace all the occurrences of your old substring. For example, our country string has United States text inside it and if we want to replace every occurrence of letter E to be uppercase, we will also use this same method replace and our method will replace all our occurrences of letter E to uppercase letter E. And as you can see all our letter E in our string is been replaced by uppercase letters E. That's all in this lesson. Thanks for watching. See you in next lesson. Bye-bye.