+ 1
Replace
g = "hi" g.replace("i","h") print (g) How to replace it ? š¤
3 Answers
+ 3
g = "hi"
g=g.replace("i","h")
print(g)
+ 2
Do you want its meaning.. ?
g.replace("i", "h") replaces i with h so g="hh" and next ("hh").replace("h","i") replaces h with i so output g = "ii"
+ 1
Jayakrishnaš®š³ and 2 replace ?
g = g.replace("i","h").replace ("h","i")