One important thing that makes strings different from some other Python collection types is that you are not allowed to modify the individual characters in the collection. It is tempting to use the [] operator on the left side of an assignment, with the intention of changing a character in a string. For example, in the following code, we would like to change the first letter of greeting.
Strings are immutable, which means you cannot change an existing string. The best you can do is create a new string that is a variation on the original.