I have a long string which opens and closes with 3 double quotes ("""). When I use the .replace function on it, it doesn't work (nor does it return an error or anything). It appears to run the code and then when I print the updated string, it hasn't actually changed.
surnames="""
Smith
Jones
Taylor
"""
Say I wanted to replace the uppercase 'S' in 'Smith' with an 'A' for example:
surnames.replace("S", "A")
It doesn't work! Is it even possible to do these operations on long strings in Python?