Strings
5 / 18
EasyOutput prediction

str.replace() returns a new string

What does this code print?

s = "aabbcc"
s.replace("b", "x")
print(s)

← → arrow keys to navigate

Sign in to save your progress.