+ 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")