OverIQ.com
Run (or Hit F9)
s1 = "Learning C" # old string print(id(s1)) s2 = s.replace("C", "Python") # replace() creates a new string and assigns it to s2 print(s2) print(id(s1))