In Python, strings are immutable, which means that once a string is created, its contents cannot be changed. However, you can achieve a similar effect by converting the string into a mutable data type, such as a list, and then modifying the list. Here's an example:
python